随笔分类 -  OC代码片段

obj-c的一些代码片段,可以直接使用!
摘要:Step1: menuTableView.separatorStyle = UITableViewCellSeparatorStyleNone;Step2: 重写此方法 - (void)drawRect:(CGRect)rect{ CGContextRef context = UIGraph... 阅读全文
posted @ 2014-09-26 11:51 More张宇 阅读(202) 评论(0) 推荐(0)
摘要:目前制作的app出现了,上述图片的bug,分享下解决心得,及要注意的地方!出现问题的代码:之后改进的代码: 阅读全文
posted @ 2014-09-01 09:40 More张宇 阅读(1559) 评论(0) 推荐(0)
摘要:- (void)yourButtonTitleTime{ __block int timeout=30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);... 阅读全文
posted @ 2014-06-23 16:23 More张宇 阅读(598) 评论(0) 推荐(0)
摘要:1 /**2 * 使用Custom UIView的这条路,我走的很不顺利,前期犯2,中期有事,浪费了很多时间!3 * 现在空闲的时间不多了,只能抓紧时间写两个小demo,一来做练习,二来整理下也许能给要学习的人一些帮助!4 */1 /**2 * Custom UIView常用的三种实现... 阅读全文
posted @ 2014-05-26 16:26 More张宇 阅读(675) 评论(0) 推荐(0)
摘要:- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{ if ([cell respondsTo... 阅读全文
posted @ 2014-05-21 17:37 More张宇 阅读(430) 评论(0) 推荐(0)