随笔分类 -  ios开发——各种UIView

摘要:- (void)viewDidLoad { UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake(50.0, 20.0, 200.0, 50.0)]; UILabel *label2 = [[UILabel alloc]in... 阅读全文
posted @ 2015-05-31 15:00 Teemo_oO 阅读(233) 评论(0) 推荐(0)
摘要://初始化textfield并设置位置及大小UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 textField.borderS... 阅读全文
posted @ 2015-05-28 23:04 Teemo_oO 阅读(390) 评论(0) 推荐(0)
摘要://这里创建一个圆角矩形的按钮UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];//能够定义的button类型有以下6种//typedef enum {//UIButtonTypeCustom = 0, 自定义... 阅读全文
posted @ 2015-05-28 22:49 Teemo_oO 阅读(277) 评论(0) 推荐(0)