会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
oumygade
每天一小步
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
10
下一页
2015年11月7日
iOS 利用KVO高效地实现倒计时功能
摘要: 电商项目中, 有很多地方需要用到倒计时, 比如sectionHeader可能需要个倒计时, cell上也可能需要个倒计时.封装自定义View的时候,比较常见的做法是, 每个自定义view内部,都生成并持有一个Timer, 然后这个自定义view的接口方法做成下面这样(具体视服务器接口而定):- (v...
阅读全文
posted @ 2015-11-07 23:56 oumygade
阅读(456)
评论(0)
推荐(0)
2015年11月2日
iOS 实用Category, 批量增加子视图
摘要: UIView *oneSubView = [[UIView alloc] init];oneSubView.frame = CGRectMake(50, 50, 100, 100);UIView *twoSubView = [[UIView alloc] init];twoSubView.frame...
阅读全文
posted @ 2015-11-02 15:25 oumygade
阅读(202)
评论(0)
推荐(0)
2015年11月1日
iOS 灰度发布的具体操作
摘要: 1. 筛选一定数量的活跃用户, 向他们发送远程推送通知, 提醒他们有新版本了2. (a)用crashlytics收集崩溃信息 (b)将代码中的不是很必要的断言替换成日志,记录到本地. app进入后台时, 有短暂的时间,可以将本地的日志数据发送给服务器3. 针对crashlytics收集的崩溃信息和...
阅读全文
posted @ 2015-11-01 15:12 oumygade
阅读(1786)
评论(0)
推荐(0)
2015年10月18日
iOS 通过分类实现 微信的导航栏"加载中..."
摘要: 使用简单: 1.#import "UIViewController+NavBarLoading.h" 2. 调 [self startLoading], 显示加载中... 3. 调 [self stopLoading], 恢复之前的导航栏Title源码地址:https://githu...
阅读全文
posted @ 2015-10-18 23:59 oumygade
阅读(329)
评论(0)
推荐(0)
iOS Block总结
摘要: 1. 作为属性而存在的BlocktestBlock.m文件里@property (copy, nonatomic) void (^aBlock)(); // MRC下,block属性必须是显式标注copy策略; ARC下,其实可以不显式标明copy, xcode会自动对block属性采取copy策略...
阅读全文
posted @ 2015-10-18 21:00 oumygade
阅读(167)
评论(0)
推荐(0)
2015年9月4日
iOS 自定义Loading指示器
摘要: gitHub: https://github.com/tomatoK/TKLoadView
阅读全文
posted @ 2015-09-04 00:30 oumygade
阅读(1086)
评论(0)
推荐(0)
2015年8月24日
iOS 坑点 Assertion failure in - UITableView dequeueReusableCellWithIdentifier:forIndexPath:
摘要: *** Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-3347.44.2/UITableView.m:6245- (v...
阅读全文
posted @ 2015-08-24 23:58 oumygade
阅读(7949)
评论(1)
推荐(1)
2015年8月10日
iOS 自定义分段选择器
摘要: UIFont *titleFont = [UIFont systemFontOfSize:13];// 状态1 TKSegementedItemStatus *compositeNormal = [TKSegementedItemStatus statusWithTitle:@"综合" titleC...
阅读全文
posted @ 2015-08-10 00:32 oumygade
阅读(2942)
评论(0)
推荐(0)
2015年8月9日
iOS Assertion failure in [MyClass layoutSublayersOfLayer:]
摘要: // 某自定义的view的layoutSubviews方法- (void)layoutSubviews{ [super layoutSubviews]; // 执行完[super layoutSubviews]后,写约束代码,在iOS7下会崩溃,报 Assertion failure in [M...
阅读全文
posted @ 2015-08-09 11:43 oumygade
阅读(528)
评论(0)
推荐(0)
2015年7月12日
iOS 利用runtime调用方法
摘要: 利用runtime调用方法,可实现不做import,直接调用// Build Setting--> Apple LLVM 6.0 - Preprocessing--> Enable Strict Checking of objc_msgSend Calls 改为 NO- (void)execFunc...
阅读全文
posted @ 2015-07-12 17:33 oumygade
阅读(773)
评论(0)
推荐(0)
1
2
3
4
5
···
10
下一页
公告