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