07 2014 档案
摘要://初始化大小 UITextView *textview=[[UITextView alloc]initWithFrame:self.view.frame]; //设置textview里面的字体颜色 textview.textColor=[UIColor blackColor]; //设...
阅读全文
摘要:原文请链接:http://blog.csdn.net/tskyfree/article/details/8121915///初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20...
阅读全文
摘要:1 //创建tableView UITableView *myTable =[[UITableView alloc]initWithFrame:CGRectMake(0, 0, 0, 0) style:UITableViewStylePlain]; myTable.backgroundCol...
阅读全文
摘要:1 模态(model) //进入B页面(在A页面写以下代码) (1) B页面名*VC=[[B页面名 alloc] init]; VC.modalTransitionStyle=UIModalTransitionStyleCoverVertical;或(2) B页面名*VC=[[B页面名a...
阅读全文
摘要:1 //创建label UILabel*label=[[UILabelalloc]initWithFrame:CGRectMake(0,0,0,0)]; 2 //文本 NSString*string =@"11111111122222222233333333"; UIFont*font=[U...
阅读全文
摘要:1 textAlignment有三种设置方式:(以UI开头,是ios6之前的用法) (1) NSTextAlignmentLeft 为向左对齐 (2) NSTextAlignmentCenter 为居中对齐 (3) NSTextAlignmentRight 为向右对齐2 linBr...
阅读全文

浙公网安备 33010602011771号