摘要: #import@interfaceTextViewController:UIViewController{UITextView*textView;}@property(nonatomic,retain)UITextView*textView;@end在.m文件中初始化这个textview,写入代码如... 阅读全文
posted @ 2015-05-06 17:18 certify 阅读(90) 评论(0) 推荐(0)
摘要: 包括以下几类://继承自NSObject:(暂列为控件) UIColor*_color; //颜色 UIImage*_image; //图像 //继承自UIView:只能相应手势UIGestureRecognizer事件,如果本事不响应会将事件action向superview传递 UILabel*_... 阅读全文
posted @ 2015-05-06 16:45 certify 阅读(123) 评论(0) 推荐(0)
摘要: https://developer.apple.com 网站 阅读全文
posted @ 2015-05-06 16:07 certify 阅读(115) 评论(0) 推荐(0)
摘要: self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey... 阅读全文
posted @ 2015-05-06 15:57 certify 阅读(144) 评论(0) 推荐(0)
摘要: self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey... 阅读全文
posted @ 2015-05-06 15:56 certify 阅读(143) 评论(0) 推荐(1)
摘要: // 初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; // 设置边框样式,只有设置了才会显示边框样式 //text.borderS... 阅读全文
posted @ 2015-05-06 15:55 certify 阅读(138) 评论(0) 推荐(0)
摘要: UILabel *label = [[UILabel alloc]init]; [self.view addSubview:label]; // 设置label 的大小,位置 label.frame = CGRectMake(97, 47, 223, 1); // 设置背景色 label... 阅读全文
posted @ 2015-05-06 15:53 certify 阅读(133) 评论(0) 推荐(0)
摘要: UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; //能够定义的button类型有以下6种 /*typedef enum{ UIButtonTypeCustom = 0; 自定义风格 UIButto... 阅读全文
posted @ 2015-05-06 15:52 certify 阅读(143) 评论(0) 推荐(0)