07 2014 档案

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