03 2016 档案

摘要:在控制器的生命周期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 阅读(263) 评论(0) 推荐(0) 编辑
摘要:1: //字条串是否包含有某字符串 gzz0307 这个不会崩溃ios7 if ([getString rangeOfString:@"="].location == NSNotFound) { MCLog(@"==不做处理=="); } else { MCLog(@"包含 "); NSArray 阅读全文
posted @ 2016-03-16 15:55 zhen_zhen 阅读(129) 评论(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 阅读(175) 评论(0) 推荐(0) 编辑
摘要: UIWebView *viewWeb = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];     viewWeb.backgroundColor = [UIColor whiteCol 阅读全文
posted @ 2016-03-15 12:28 zhen_zhen 阅读(117) 评论(0) 推荐(0) 编辑
摘要: //gzz0315     UIScrollView *Scrview = [[UIScrollView alloc]initWithFrame:CGRectMake(0,0,SCREEN_WIDTH, SCREEN_HEIGHT                                   阅读全文
posted @ 2016-03-15 11:50 zhen_zhen 阅读(154) 评论(0) 推荐(0) 编辑
摘要:  #import <UIKit/UIKit.h>   @interface UITabBar (badge) - (void)showBadgeOnItemIndex:(int)index;   //显示小红点 - (void)hideBadgeOnItemIndex:(int)index; // 阅读全文
posted @ 2016-03-14 13:35 zhen_zhen 阅读(128) 评论(0) 推荐(0) 编辑
摘要:文/si1ence(简书作者)原文链接:http://www.jianshu.com/p/2b79b520d61c著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。- (instancetype)init { self = [super init]; if (self) { // 注册通 阅读全文
posted @ 2016-03-11 19:05 zhen_zhen 阅读(146) 评论(0) 推荐(0) 编辑
摘要:代理: - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { //将分割线拉伸到屏幕的宽度 if 阅读全文
posted @ 2016-03-11 17:19 zhen_zhen 阅读(136) 评论(0) 推荐(0) 编辑
摘要:第一步,下载SDWebImage,导入工程。github托管地址https://github.com/rs/SDWebImage 第二步,在需要的地方导入头文件 1 #import "UIImageView+WebCache.h" 第三步,调用sd_setImageWithURL:方法缓存图片,注意 阅读全文
posted @ 2016-03-10 16:24 zhen_zhen 阅读(124) 评论(0) 推荐(0) 编辑
摘要:a.h 中: typedef void (^ReturnAmountBlock)(NSString *showText); @interface amoutViewcontroller : UIViewController @property (nonatomic, copy) ReturnAmou 阅读全文
posted @ 2016-03-10 10:48 zhen_zhen 阅读(120) 评论(0) 推荐(0) 编辑
摘要:1: - (IBAction)ImageBtnAction:(id)sender { if (!self.ImageBtn.selected) { selecImageBlocks(self.PhoneStr); } else{ removeImageBlocks(self.PhoneStr); } 阅读全文
posted @ 2016-03-10 10:33 zhen_zhen 阅读(94) 评论(0) 推荐(0) 编辑
摘要:刷新固定的行 [_tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone]; [SeletPersonList addObject:str]; if ([selectpers 阅读全文
posted @ 2016-03-10 10:29 zhen_zhen 阅读(184) 评论(0) 推荐(0) 编辑
摘要:下面介绍我最后使用的一个办法。 先把图片直接存储到沙盒中。 然后plist文件中记录图片的路径。然后要使用图片的时候通过访问plist文件获取图片路径来调用。 下面是使用示例: 一。图片存储到沙盒中 NSArray *paths = NSSearchPathForDirectoriesInDomai 阅读全文
posted @ 2016-03-09 09:51 zhen_zhen 阅读(123) 评论(0) 推荐(0) 编辑
摘要:iOS开发之静态库.a的制作教程 2015-02-26 09:13 编辑: pockry 分类:iOS开发 来源:董文博的博客 1 16350 iOS开发静态库framework 招聘信息: iOS软件工程师 Web后端高级开发工程师 Mac开发工程师 iOS技术专家 高级PHP开发工程师 iOS 阅读全文
posted @ 2016-03-08 11:10 zhen_zhen 阅读(122) 评论(0) 推荐(0) 编辑
摘要://gzz0307 -(void)maketitleView11{ UIView * titleView =[[UIView alloc]initWithFrame:CGRectMake(0, 0, ConentViewWidth - 0 , 54)]; searchTextField = [[UI 阅读全文
posted @ 2016-03-07 17:11 zhen_zhen 阅读(237) 评论(0) 推荐(0) 编辑
摘要://gzz0307 下面四行的 NSString *getString=[NSString stringWithFormat:@"%@",StrartQv]; //字条串是否包含有某字符串 gzz0307 if ([getString rangeOfString:@"="].location == 阅读全文
posted @ 2016-03-07 17:08 zhen_zhen 阅读(125) 评论(0) 推荐(0) 编辑
摘要:1: #import "ContactListViewCell.h" @implementation ContactListViewCell -(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus 阅读全文
posted @ 2016-03-04 17:53 zhen_zhen 阅读(172) 评论(0) 推荐(0) 编辑
摘要:.h是这样的 #import <UIKit/UIKit.h> #import <BaiduMapAPI/BMapKit.h> @interface NearbyViewController : UIViewController<BMKLocationServiceDelegate,BMKMapVie 阅读全文
posted @ 2016-03-01 14:07 zhen_zhen 阅读(283) 评论(0) 推荐(0) 编辑
摘要: CSDN博客 gf771115 iOS 用CornerStone配置SVN,HTTP及svn简单使用说明 CornerStone是Mac OS X系统下非常好用的一款svn工具,至XCode5之后,本人觉得XCode5的Svn实在让人不得要领,而CornerStone配置虽不难,但也有几个需要 阅读全文
posted @ 2016-03-01 09:51 zhen_zhen 阅读(135) 评论(0) 推荐(0) 编辑
摘要:工程文件上传到svn中,.a文件会自动屏蔽(应该叫屏蔽,反正就是上传不上去) 用Cornerstone工具,解决这个问题 1.打开Cornerstone左上角,点Cornerstone->Preferences->Subversion 2.Global lgnores下面有一个Use default 阅读全文
posted @ 2016-03-01 09:41 zhen_zhen 阅读(151) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示