摘要: 一、Touch手势1、利用手势实现UIButton移动效果 实例代码 1) 创建一个继承自UIButton的类 MyButton.h 代码实现1 #import 2 @interface MyButton : UIButton3 @end2)MyButton.m 的代码实现 1 #import "M... 阅读全文
posted @ 2015-08-30 20:39 ChinaKingKong 阅读(557) 评论(0) 推荐(1) 编辑
摘要: iOS学习(UI)知识点整理一、UI小组件1、UISegmentedControl 分段选择器 实例代码 1 - (void)viewDidLoad { 2 [super viewDidLoad]; 3 //分段选择器 4 //在iOS6里,每个段的宽度会根据字数来决定 5 ... 阅读全文
posted @ 2015-08-30 20:05 ChinaKingKong 阅读(865) 评论(0) 推荐(0) 编辑
摘要: iOS学习(UI)知识点整理 一、自定义标签栏 1、方法一 单个创建标签栏 1 #import "AppDelegate.h" 2 #import "SecondViewController.h" 3 #import "ViewController.h" 4 #import "ThirdViewCo 阅读全文
posted @ 2015-08-30 18:49 ChinaKingKong 阅读(910) 评论(0) 推荐(0) 编辑
摘要: iOS学习(UI)知识点整理一、界面传值方法 1、方法一 Block传值 通过SubView视图的Block向View视图传值改变View视图的背景色 实例代码:1)SubViewController.h 文件的代码实现1 #import 2 @interface SubViewController... 阅读全文
posted @ 2015-08-30 17:30 ChinaKingKong 阅读(899) 评论(3) 推荐(2) 编辑