![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS - UI
i-Kohler
期待未来
展开
-
UI_自定义视图_code
Day 03 of UILTView(自定义视图)AppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after applic原创 2015-03-26 17:41:28 · 208 阅读 · 0 评论 -
UI_触摸、响应者链
Day 04 of UII.触摸//Touch有以下四种响应方式,若注掉其中一个,此动作将无法再响应(如果可能,会在其父视图中寻求响应)- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"触摸开始");}- (void)touchesMoved:(NSSet *)touches withEvent原创 2015-03-26 17:41:31 · 289 阅读 · 0 评论 -
UI_设计模式、手势
Day 05 of UI1. Target-Action设计模式的写法? 1.1 创建MyButton类 1.2 在MyButton.h文件中声明了添加事件的方法 1.3 写延展,声明私有的实例变量(_target / _action / _controlEvents) 1.4 实现addTaregt:action:forControlEvents:内部,将参数的值,赋给实原创 2015-03-26 17:41:38 · 286 阅读 · 0 评论 -
UI_UIControl及其子类
Day 06 of UI // 其中UIControl及其子类默认与用户交互为YESI. UISegmentedControl// 初始化 initWithItems self.segmentedControl = [[[UISegmentedControl alloc] initWithItems:@[@"czt", @"ws", @"dada"]] autorelease]; _segment原创 2015-03-26 17:41:41 · 405 阅读 · 0 评论 -
UI_ContainerViewController
1. 创建ContainerViewController.h / .m,设置背景颜色2. 设置window和根视图控制器3. 创建LoginViewController和LoginView,绑定并且设置背景色4. 创建RegisterViewContrller和ReigsterView,绑定并设置背景色5. 创建FindPwdViewController和FindPwdView,绑定并设置背景色6原创 2015-03-26 17:41:48 · 763 阅读 · 0 评论 -
UI_基础模块
Day 01 & 02 of UII.UIWindowself.window = [[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds] autorelease];self.window.backgroundColor = [UIColor whiteColor];[self.window makeKeyAndVisible];原创 2015-03-26 17:41:24 · 318 阅读 · 0 评论 -
UI_ViewController(视图控制器)
ViewController(视图控制器)1. 创建视图控制器类2. 创建自定义视图类3. 将自定义视图的View替换自带的View 3.1 引入 3.2 写属性 3.3 dealloc 3.4 重写loadView4. 设置好页面 4.1 声明属性 4.2 dealloc方法 4.3 创建视图元素,然后添加到页面上5. 给button绑定事件(Contr原创 2015-03-26 17:41:45 · 281 阅读 · 0 评论