摘要: 1 #import "ViewController.h" 2 3 @interface ViewController () 4 { 5 //创建数据源 6 NSMutableArray * _dataArray; 7 8 } 9 10 @end 11... 阅读全文
posted @ 2015-11-29 23:04 GXcoder 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1 //创建一个全屏大小的scrollerView 2 UIScrollView * scrollerView = [[UIScrollView alloc]initWithFrame:self.view.bounds] ; 3 //添加到self.view上 4 [sel... 阅读全文
posted @ 2015-11-29 22:59 GXcoder 阅读(166) 评论(0) 推荐(0) 编辑
摘要: webView使用loadRequest: 方法请求数据的加载 1 - (void)createWebView{ 2 //创建全屏大小的webView 3 UIWebView * view = [[UIWebView alloc]initWithFrame:self.view.bou... 阅读全文
posted @ 2015-11-29 22:17 GXcoder 阅读(270) 评论(0) 推荐(0) 编辑
摘要: UITabBarController的创建与基本属性 1 - (void)customTabbarController{ 2 3 //声明一个UITabBarController 4 UITabBarController * tab = [[UITabBarCont... 阅读全文
posted @ 2015-11-29 22:10 GXcoder 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 一.UITouch 1 //任何视图都可以触发此方法 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 3 NSLog(@"视图被触摸了"); 4 } 5 6 - (void)touchesCancel... 阅读全文
posted @ 2015-11-29 22:01 GXcoder 阅读(232) 评论(0) 推荐(0) 编辑