会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风痕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2016年2月25日
ios 开发视图界面动态渲染
摘要: #import "MyView.h" IB_DESIGNABLE @interface MyView () @property (nonatomic, strong) IBInspectable UIColor * borderColor; @property (nonatomic, assign)
阅读全文
posted @ 2016-02-25 10:03 云影风雨
阅读(447)
评论(0)
推荐(0)
2016年2月23日
ios 运行时特征,动态改变控件字体大小
摘要: 需求:ex: 在不同尺寸的iPhone上面显示的字体大小不一样 https://github.com/rentzsch/jrswizzle #import <UIKit/UIKit.h> @interface UILabel (Common) - (void) swizzSetFont: (UIFo
阅读全文
posted @ 2016-02-23 17:28 云影风雨
阅读(690)
评论(0)
推荐(0)
2016年2月16日
ios 修改导航栏返回按钮的图片
摘要: 修改导航栏返回按钮的图片 方法1: [UINavigationBar appearance].backIndicatorTransitionMaskImage = [UIImage imageNamed:@"backArrowMask.png"]; [UINavigationBar appearan
阅读全文
posted @ 2016-02-16 14:21 云影风雨
阅读(10819)
评论(0)
推荐(0)
ios 在工程中使用字体
摘要: 1.将字体拖入项目 2.在info.plist 文件中加入 3.使用 self.label.font = [UIFont fontWithName: @"FZ XingHei" size:20]; 4.使用字体注意版权问题
阅读全文
posted @ 2016-02-16 14:19 云影风雨
阅读(207)
评论(0)
推荐(0)
2016年1月27日
iOS开发常用第三库
摘要: 字典转模型1.(MJExtension)https://github.com/CoderMJLee/MJExtension2.(YYModel)https://github.com/ibireme/YYModel动画相关1.(JHChainableAnimation)对简单动画的封装https://...
阅读全文
posted @ 2016-01-27 11:20 云影风雨
阅读(487)
评论(0)
推荐(0)
2016年1月18日
ReactiveCocoa - study
摘要: //KVO值监控,当alertTip改变时调用, filter对alertTip值进行过滤,此处当alertTip存在而长度不为0时,执行suscribeNext方法,弹出提示 [[RACObserve(self, alertTip) filter:^BOOL(NSString * value) {...
阅读全文
posted @ 2016-01-18 15:57 云影风雨
阅读(167)
评论(0)
推荐(0)
2016年1月14日
Swift - use Array
摘要: //数组声明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 云影风雨
阅读(153)
评论(0)
推荐(0)
2015年3月4日
Swift 统计项目中所有按钮的点击次数
摘要: class Swizzle: NSObject { override class func load() { UIButton.xxx_swizzleSendAction() }}extension UIButton { class func xxx_swizzleS...
阅读全文
posted @ 2015-03-04 17:13 云影风雨
阅读(587)
评论(0)
推荐(0)
Swift GCD的使用1
摘要: typealias Task = (cancel : Bool) -> ()func delay(time : NSTimeInterval, task : () -> ()) -> Task? { func dispatch_later(block : () -> ()) { ...
阅读全文
posted @ 2015-03-04 10:24 云影风雨
阅读(198)
评论(0)
推荐(0)
2015年2月26日
Swift 使用 日常笔记
摘要: //-------------------var totalPrice: Int = 0 { willSet(newTotalPrice) { //参数使用new+变量名且变量名首地址大写 println("准备将totalPrice值(原值为:\(totalPr...
阅读全文
posted @ 2015-02-26 11:21 云影风雨
阅读(272)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告