上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: UIView *bgRight=[[UIView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2, 0, SCREEN_WIDTH/2, 35)]; bgRight.backgroundColor=[UIColor whiteColor]; [bgView 阅读全文
posted @ 2016-04-18 12:01 zhen_zhen 阅读(175) 评论(0) 推荐(0) 编辑
摘要: http://www.tuicool.com/articles/zQJ32yj 阅读全文
posted @ 2016-04-06 17:06 zhen_zhen 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #import <UIKit/UIKit.h> @interface UITabBar (badge) - (void)showBadgeOnItemIndex:(int)index; //显示小红点 - (void)hideBadgeOnItemIndex:(int)index; //隐藏小红点 阅读全文
posted @ 2016-04-06 16:06 zhen_zhen 阅读(168) 评论(0) 推荐(0) 编辑
摘要: for (UIBarItem *item in self.tabBarController.tabBar.items) { [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWit 阅读全文
posted @ 2016-04-06 16:05 zhen_zhen 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 在控制器的生命周期viewDidAppear里打印日志: 在控制器的生命周期dealloc里打印日志: 这样的话,只要日志没有打印出来,说明内存得不到释放,就需要学会分析内存引用问题了。 __weak __typeof(self) weakSelf = self; 阅读全文
posted @ 2016-03-17 15:30 zhen_zhen 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 注意:之前没有设置 imageView 时,imageView 并不会被创建 解决办法 >异步下载图像 运行测试,存在的问题 >下载完成后不显示图片 原因分析: 解决办法 >使用占位图像 or 自定义 Cell 注意演示不在主线程更新图像的效果 解决办法 >自定义 Cell 问题 如果网络图片下载速 阅读全文
posted @ 2016-03-16 17:21 zhen_zhen 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1: //字条串是否包含有某字符串 gzz0307 这个不会崩溃ios7 if ([getString rangeOfString:@"="].location == NSNotFound) { MCLog(@"==不做处理=="); } else { MCLog(@"包含 "); NSArray 阅读全文
posted @ 2016-03-16 15:55 zhen_zhen 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1:通知 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) name:UIKeyboardDidShowNotification object:nil]; [[NS 阅读全文
posted @ 2016-03-16 14:10 zhen_zhen 阅读(180) 评论(0) 推荐(0) 编辑
摘要: URL:http://www.jianshu.com/p/7f1cbccc0eb3 阅读全文
posted @ 2016-03-15 17:44 zhen_zhen 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1:     _descrViewab = [[UITextView alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(contentlab.frame)+20, SCREEN_WIDTH-30, 150)];     _descrViewab.del 阅读全文
posted @ 2016-03-15 17:42 zhen_zhen 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页