UITableView左滑设置更多的按钮

摘要: /** * 代理方法 * 它可以设置更多的左侧按钮 * 但是它要覆盖了之前系统的删除按钮 */ - (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath 阅读全文
posted @ 2016-03-18 21:38 liumu1994 阅读(185) 评论(0) 推荐(0) 编辑

UITableView的增,删,改例子

摘要: 1.指定跟视图 #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishL 阅读全文
posted @ 2016-03-17 21:56 liumu1994 阅读(98) 评论(0) 推荐(0) 编辑

UITableView的简单用法

摘要: #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunching 阅读全文
posted @ 2016-03-16 22:43 liumu1994 阅读(147) 评论(0) 推荐(0) 编辑

Block传值原理

摘要: #import <UIKit/UIKit.h> #import "SecondViewController.h" @interface ViewController : UIViewController<UITextFieldDelegate> @property (nonatomic ,stron 阅读全文
posted @ 2016-03-15 22:47 liumu1994 阅读(130) 评论(0) 推荐(0) 编辑

UIToolbar的简单用法

摘要: UIToolbar 开发中经常会用到的控件之一,实现起来也很简单,与此同时我们还要知道 UIBarButtonItem 和 Fixed Space Bar Button Item,这两个小东西是在Bar上的按钮和间距,都被对象化了。 来看代码: 阅读全文
posted @ 2016-03-14 22:37 liumu1994 阅读(568) 评论(0) 推荐(0) 编辑

用UIScrollView,UIPageControl来实现滚动视图。

摘要: @interface ViewController : UIViewController<UIScrollViewDelegate> @property (nonatomic ,strong) NSMutableArray *array; @property (nonatomic ,strong) 阅读全文
posted @ 2016-03-12 22:50 liumu1994 阅读(211) 评论(0) 推荐(0) 编辑

用UIPickerView来显示省和市

摘要: UIPickerView 是一个选择器控件, 它可以生成单列的选择器,也可生成多列的选择器,而且开发者完全可以自定义选择项的外观,因此用法非常灵活。UIPickerView 直接继承了 UIView ,没有继承 UIControl ,因此,它不能像 UIControl 那样绑定事件处理方法, UIP 阅读全文
posted @ 2016-03-11 23:30 liumu1994 阅读(351) 评论(0) 推荐(0) 编辑

如何设计好的UI控件

摘要: 如何设计一个 iOS 控件? iOS 控件完全解析 分享到: 原文出处: Bannings 代码的等级:可编译、可运行、可测试、可读、可维护、可复用 前言 一个控件从外在特征来说,主要是封装这几点: 交互方式 显示样式 数据使用 对外在特征的封装,能让我们在多种环境下达到 PM 对产品的要求,并且提 阅读全文
posted @ 2016-03-10 23:49 liumu1994 阅读(526) 评论(0) 推荐(0) 编辑

UITextfield属性用法

摘要: UITextField属性,uitextfield 1.borderStyle 设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect; typedef enum { UITextBorderStyleNone, UI 阅读全文
posted @ 2016-03-09 23:32 liumu1994 阅读(138) 评论(0) 推荐(0) 编辑

UITextfile属性方法大全

摘要: //初始化textfield并设置位置及大小 UITextField *textField = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 textField.borde 阅读全文
posted @ 2016-03-08 23:48 liumu1994 阅读(451) 评论(0) 推荐(0) 编辑