摘要: iphone 恒屏和自动旋转 [声明:摘自他人,感谢作者]IPhone的自动旋转功能一共有3中方法:1.使用自动调整属性处理旋转。利用系统自动生成的代码。- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationPortrait);//系统默认不支持旋转功能}要想让系统自动实现旋 阅读全文
posted @ 2011-10-13 16:05 松花江以南 阅读(14358) 评论(1) 推荐(0) 编辑
摘要: 美化按钮//添加一个button,美化按钮 UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom]; btn1.frame = CGRectMake(40, 300, 100, 30); UIImage *buttonImageNormal = [UIImage imageNamed:@"whiteButton.png"]; UIImage *stretchableButtonImageNormal = [buttonImageNormal stretchableImageWithLeftCapWidt.. 阅读全文
posted @ 2011-10-13 10:27 松花江以南 阅读(1791) 评论(0) 推荐(0) 编辑