摘要: 这篇博文整理的很好,我网上看道 的,写的详细的都在这里面了!原文地址:http://blog.csdn.net/ch_soft/article/details/6945987。第一、UITableView的使用大全首先、对UITableView进行讲解,下面有对它进行实际的应用UITableView显示大型内容的列表单行,多列垂直滚动,没有水平滚动 大量的数据集性能强大,而且普遍存在于iPhone的应用程序中TableView Styles UITableView有两个默认的内置风格,第一个是UITableViewStylePlain(简明风格,简明风格表明表格视图自身没有真正地在你自己实际地 阅读全文
posted @ 2013-08-23 14:36 悟性思远 阅读(709) 评论(0) 推荐(0) 编辑
摘要: UIScrollView 滚动视图 (实例)原文:http://justcoding.iteye.com/blog/1462864博客分类:Phone / IOS / Objective-CUIScrollView 类负责所有基于 UIKit 的滚动操作。一、创建C代码CGRectbounds=[[UIScreenmainScreen]applicationFrame];UIScrollView*scrollView=[[UIScrollViewalloc]initWithFrame:bounds];或者C代码UIScrollView*scrollView=[[UIScrollViewallo 阅读全文
posted @ 2013-08-23 14:31 悟性思远 阅读(278) 评论(0) 推荐(0) 编辑
摘要: // 添加按钮 UIButton *but2 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; but2.frame = CGRectMake(200, 10, 65, 40); [but2 setTitle:@"开始" forState:UIControlStateNormal]; but2.titleLabel.textColor= [UIColor greenColor]; [self.view addSubview:but2]; [but2 addTarget:self action:@selector(tex 阅读全文
posted @ 2013-08-23 12:01 悟性思远 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/tskyfree/article/details/8121915IOS-TextField知多少//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;typedef enum { UITextBorderStyleNone, UITextBor.. 阅读全文
posted @ 2013-08-23 11:28 悟性思远 阅读(300) 评论(0) 推荐(0) 编辑