2015年11月23日

UIToolBar

摘要: //UIToolBar 是导航控制器默认隐藏的工具条 //设置UIToolBar的隐藏状态 self.navigationController.toolbarHidden = NO; //如何找到UIToolBar self.navigationControl... 阅读全文

posted @ 2015-11-23 21:16 【槿色年華】 阅读(182) 评论(0) 推荐(0) 编辑

2015年5月14日

自定义UISwitch

摘要: ViewController.m 1 #import "ViewController.h" 2 #import "MyUISwitch.h" 3 @interface ViewController () 4 5 6 @end 7 8 @implementation Vi... 阅读全文

posted @ 2015-05-14 21:35 【槿色年華】 阅读(451) 评论(0) 推荐(0) 编辑

UIGestureRecognizer(手势)、touch(触摸)

摘要: 1 // touch(触摸)、和手势 2 // 手势核心就是设置delegate和在需要手势监测的view上使用addGestureRecognizer添加指定的手势监测 3 #import "ViewController.h" 4 @interface ViewController ()... 阅读全文

posted @ 2015-05-14 21:17 【槿色年華】 阅读(461) 评论(0) 推荐(0) 编辑

UI之UIImageView--属性及用法

摘要: 1 // 新建UIImageView 5种方法 2 // 设置位置及大小、添加图片、添加到视图 3 UIImageView* image1 = [[UIImageView alloc]init]; 4 image1.frame = CGRectMake(10, 40... 阅读全文

posted @ 2015-05-14 21:14 【槿色年華】 阅读(356) 评论(0) 推荐(0) 编辑

2015年5月7日

自定义UISlider之点触摸

摘要: ViewController.m 1 #import "ViewController.h" 2 #import "MySlider.h" // 导入自定义封装的MySlider类头文件 3 @interface ViewController () 4 @end 5 @implementation ... 阅读全文

posted @ 2015-05-07 22:07 【槿色年華】 阅读(336) 评论(0) 推荐(0) 编辑

形变属性

摘要: 1 #import "ViewController.h" 2 @interface ViewController () 3 @end 4 @implementation ViewController 5 6 - (void)viewDidLoad { 7 [sup... 阅读全文

posted @ 2015-05-07 22:00 【槿色年華】 阅读(150) 评论(0) 推荐(0) 编辑

2015年5月6日

UISegmentedControl、UISlider、UISwitch

摘要: 1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 { 5 UISlider* lider; 6 } 7 8 @end 9 10 @implementation AppDelegate 11 ... 阅读全文

posted @ 2015-05-06 19:41 【槿色年華】 阅读(280) 评论(0) 推荐(0) 编辑

2015年5月2日

UI之UI View--属性及用法

摘要: 1 // 设置视图view1,并初始化位置及大小 2 UIView* view1 = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 200, 200)]; 3 // 设置背景颜色 4 view1.backgrou... 阅读全文

posted @ 2015-05-02 01:24 【槿色年華】 阅读(301) 评论(0) 推荐(0) 编辑

2015年5月1日

UI之UIAlertView--提示框

摘要: 普通弹窗 1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 @end 5 @implementation AppDelegate 6 - (BOOL)application:(UIApplication *)application ... 阅读全文

posted @ 2015-05-01 13:15 【槿色年華】 阅读(286) 评论(0) 推荐(0) 编辑

2015年4月30日

UI之UITextField--属性及用法

摘要: 1 // 初始化textfield,并设置textfield得位置及大小 2 UITextField* field = [[UITextField alloc]initWithFrame:CGRectMake(100, 100, 100, 30)]; 3 // 设置text... 阅读全文

posted @ 2015-04-30 23:43 【槿色年華】 阅读(232) 评论(0) 推荐(0) 编辑

导航