随笔分类 -  IOS

摘要:这个提示并不是出错,不理会它我的程序也没出现什么问题但是处于强迫症,还是努力寻找解决的方法。。。最终发现问题如下:在xib各种绘制和添加约束的UITableViewCell之后,在某一特定情况想要隐藏这个Cell,于是我就在UITableView的- (CGFloat)tableView:(UITa... 阅读全文
posted @ 2016-01-12 17:10 Rinpe 阅读(305) 评论(0) 推荐(0)
摘要:[!] `` attempted to initialize an object with an unknown UUID. `0B6359431C33CA0200C80C5D` for attribute: `files`. This can be the result of a merge an... 阅读全文
posted @ 2016-01-04 08:56 Rinpe 阅读(3205) 评论(0) 推荐(0)
摘要://// RPProgressView.h// CALayer定制下载进度条控件//// Created by RinpeChen on 16/1/2.// Copyright © 2016年 rinpe. All rights reserved.//#import @interface R... 阅读全文
posted @ 2016-01-02 11:42 Rinpe 阅读(216) 评论(0) 推荐(0)
摘要:编译之后出现:ld: warning: object file xxxxx... was built for newer iOS version (8.1) than being linked (7.0)解决方法:在Build Settings -> other lingkr Flags 中添加-w... 阅读全文
posted @ 2015-12-30 14:45 Rinpe 阅读(1476) 评论(0) 推荐(0)
摘要:经排查, 系因为URL中包含有中文, 所以无法加载页面, 解决方法如下:将URL进行转码NSString *urlStr =[[NSString stringWithFormat:@"http://www.xxx.com/xxx?city=深圳"] stringByAddingPercentEsca... 阅读全文
posted @ 2015-12-30 11:00 Rinpe 阅读(241) 评论(0) 推荐(0)
摘要:apns -> 注册推送功能时发生错误,错误信息: Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的授权字符串" UserInfo=0x16545fc0 {NSLocalizedDescription=未找到应... 阅读全文
posted @ 2015-12-27 10:15 Rinpe 阅读(2912) 评论(0) 推荐(0)
摘要:我出现这个错误是在pch中添加了一个a.h文件然后在其他文件的b.h文件中就出现这个错误..后来排查出原因是:在pch中, 这个a.h文件在b.h文件之后, 所以在b.h中使用的时候就会报错 阅读全文
posted @ 2015-12-26 10:07 Rinpe 阅读(6656) 评论(0) 推荐(0)
摘要:在AppDelegate.m的- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions方法里加上一段代码[NSThreadsleepForTim... 阅读全文
posted @ 2015-12-25 20:23 Rinpe 阅读(165) 评论(0) 推荐(0)
摘要:POST:AFHTTPSessionManager *session = [AFHTTPSessionManager manager];session.requestSerializer = [AFJSONRequestSerializer serializer];NSMutableDictiona... 阅读全文
posted @ 2015-12-22 17:40 Rinpe 阅读(9520) 评论(0) 推荐(0)
摘要:主要原因如下:+ (instancetype)mineHeaderView{ return [[NSBundle mainBundle] loadNibNamed:@"DDMineHeaderView" owner:nil options:nil].lastObject;}添加手势后, 以上的... 阅读全文
posted @ 2015-12-22 15:46 Rinpe 阅读(634) 评论(0) 推荐(0)
摘要:tableView的beginUpdate和endUpdate要比reloadData和reloadRowsAtIndexPaths好,因为beginUpdate和endUpdate会执行一个动画block,图片加载的时候显的很平滑。你自己试一下就知道了。加载图片的时候要用多线程,要用缓存,也就是需... 阅读全文
posted @ 2015-12-21 22:15 Rinpe 阅读(1903) 评论(0) 推荐(0)
摘要:Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a tableview cell's content view. We're considering the c... 阅读全文
posted @ 2015-12-21 16:53 Rinpe 阅读(852) 评论(0) 推荐(0)
摘要:2015-01-28 21:55:17.790 Demo[636:9351] the behavior of the UICollectionViewFlowLayout is notdefined because:2015-01-28 21:55:17.791Demo[636:9351]the i... 阅读全文
posted @ 2015-12-21 16:46 Rinpe 阅读(1185) 评论(0) 推荐(0)
摘要:第一步:关闭 Xcode。第二步:如果你之前安装过Alcatraz,卸载它。在终端运行命令:rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin第三步:最关键的一步,运行以下两条... 阅读全文
posted @ 2015-12-20 23:25 Rinpe 阅读(286) 评论(0) 推荐(0)
摘要:1.最常见的原因是contentSize 这个属性,比uiscrollview的frame要小, 无需滚动, 自然就滚动不了。scrollenabled 这个属性,标识着是否允许滚动,要言设成yes2.但是今天我遇到了另外一种情况也就是将ScrollView放在一个UIView中, 该设置的属性都设... 阅读全文
posted @ 2015-12-20 20:40 Rinpe 阅读(891) 评论(0) 推荐(0)
摘要:输入pod install之后出现:[!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod ... 阅读全文
posted @ 2015-12-18 18:52 Rinpe 阅读(779) 评论(0) 推荐(0)
摘要:看图,设置成这样就会出现大量的警告,解决方法如下:将debug information format 更改为:DWARF即可 阅读全文
posted @ 2015-12-15 17:38 Rinpe 阅读(557) 评论(0) 推荐(0)
摘要:AppDelegate.m#import "AppDelegate.h"#import "Reachability.h"@interface AppDelegate ()@property (nonatomic, strong) Reachability *reachability;@end@imp... 阅读全文
posted @ 2015-12-15 17:17 Rinpe 阅读(506) 评论(0) 推荐(0)
摘要:断言, 判断是否符合某个特定条件, 符合就继续运行程序, 反之就抛出异常, 后面为自定义错误提示, 也可以使用NSParameterAssert, 在调试上有着很大的方便int a = 0;NSAssert(a != 0, @"a不是0, 不能继续运行");NSParameterAssert(a !... 阅读全文
posted @ 2015-12-15 11:48 Rinpe 阅读(163) 评论(0) 推荐(0)
摘要:在ios7中,UITableViewCell左侧会有默认15像素的空白。这时候,设置setSeparatorInset:UIEdgeInsetsZero 能将空白去掉。但是在ios8中,设置setSeparatorInset:UIEdgeInsetsZero 已经不起作用了。下面是解决办法首先在vi... 阅读全文
posted @ 2015-12-14 13:42 Rinpe 阅读(526) 评论(0) 推荐(0)