没事写写代码
文章平均质量分 78
Anmac
这个作者很懒,什么都没留下…
展开
-
写了个UIButton的分类
//个人写代码有整理强迫症,不喜欢uibutton每次都需要重新写个函数,就写了个分类!//一些有重复调用必要的函数还是不要用此分类的好@interface UIButton (Block) /* * handleControlEvent:withBlock: * 使用block处理button事件 * 入参:event 触发类型 例: UIContro原创 2014-03-17 14:34:49 · 936 阅读 · 0 评论 -
写了个UINavigation的继承类,实现右滑后退
又是一个工具类,copy之后一直就能用;如果不能,请联系我 在创建uinavigation的时候替换一下类名就可以了 //.h文件,没有任何对外属性 @interface PanNavigationController : UINavigationController @end //.m文件开始 @interface PanNavigationController () { C原创 2014-03-17 14:48:15 · 620 阅读 · 0 评论 -
写了个NSObject的扩展类
一个object的分类,可以在调用performSelector:函数的时候不限制传参的数量(BOOL需要封装一层). //为了让performSelector:后面带入的参数可识别,很有必要将bool封装一层,用于在后面解析函数时候的识别 @interface BoolClass:NSObject @property (nonatomic,assign)BOOL b_; +(BoolClass原创 2014-03-17 14:28:18 · 847 阅读 · 0 评论