摘要: 需求:ex: 在不同尺寸的iPhone上面显示的字体大小不一样 https://github.com/rentzsch/jrswizzle #import <UIKit/UIKit.h> @interface UILabel (Common) - (void) swizzSetFont: (UIFo 阅读全文
posted @ 2016-02-23 17:28 云影风雨 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 修改导航栏返回按钮的图片 方法1: [UINavigationBar appearance].backIndicatorTransitionMaskImage = [UIImage imageNamed:@"backArrowMask.png"]; [UINavigationBar appearan 阅读全文
posted @ 2016-02-16 14:21 云影风雨 阅读(10802) 评论(0) 推荐(0) 编辑
摘要: 1.将字体拖入项目 2.在info.plist 文件中加入 3.使用 self.label.font = [UIFont fontWithName: @"FZ XingHei" size:20]; 4.使用字体注意版权问题 阅读全文
posted @ 2016-02-16 14:19 云影风雨 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 字典转模型1.(MJExtension)https://github.com/CoderMJLee/MJExtension2.(YYModel)https://github.com/ibireme/YYModel动画相关1.(JHChainableAnimation)对简单动画的封装https://... 阅读全文
posted @ 2016-01-27 11:20 云影风雨 阅读(463) 评论(0) 推荐(0) 编辑
摘要: //KVO值监控,当alertTip改变时调用, filter对alertTip值进行过滤,此处当alertTip存在而长度不为0时,执行suscribeNext方法,弹出提示 [[RACObserve(self, alertTip) filter:^BOOL(NSString * value) {... 阅读全文
posted @ 2016-01-18 15:57 云影风雨 阅读(158) 评论(0) 推荐(0) 编辑
摘要: //数组声明var arr0 = Array()var arr1 = Array(count: 3, repeatedValue: "")var strs = ["Hello"]print(strs.count) //个数strs.append("Hi") //添加print(strs.isEmpt... 阅读全文
posted @ 2016-01-14 11:43 云影风雨 阅读(147) 评论(0) 推荐(0) 编辑
摘要: class Swizzle: NSObject { override class func load() { UIButton.xxx_swizzleSendAction() }}extension UIButton { class func xxx_swizzleS... 阅读全文
posted @ 2015-03-04 17:13 云影风雨 阅读(579) 评论(0) 推荐(0) 编辑
摘要: typealias Task = (cancel : Bool) -> ()func delay(time : NSTimeInterval, task : () -> ()) -> Task? { func dispatch_later(block : () -> ()) { ... 阅读全文
posted @ 2015-03-04 10:24 云影风雨 阅读(192) 评论(0) 推荐(0) 编辑
摘要: //-------------------var totalPrice: Int = 0 { willSet(newTotalPrice) { //参数使用new+变量名且变量名首地址大写 println("准备将totalPrice值(原值为:\(totalPr... 阅读全文
posted @ 2015-02-26 11:21 云影风雨 阅读(265) 评论(0) 推荐(0) 编辑
摘要: //webview导航栏类型enum UIWebViewNavigationType : Int { case LinkClicked case FormSubmitted case BackForward case Reload case FormResubm... 阅读全文
posted @ 2015-02-10 09:13 云影风雨 阅读(765) 评论(0) 推荐(0) 编辑