摘要: 看图,设置成这样就会出现大量的警告,解决方法如下:将debug information format 更改为:DWARF即可 阅读全文
posted @ 2015-12-15 17:38 Rinpe 阅读(542) 评论(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 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 断言, 判断是否符合某个特定条件, 符合就继续运行程序, 反之就抛出异常, 后面为自定义错误提示, 也可以使用NSParameterAssert, 在调试上有着很大的方便int a = 0;NSAssert(a != 0, @"a不是0, 不能继续运行");NSParameterAssert(a !... 阅读全文
posted @ 2015-12-15 11:48 Rinpe 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 在ios7中,UITableViewCell左侧会有默认15像素的空白。这时候,设置setSeparatorInset:UIEdgeInsetsZero 能将空白去掉。但是在ios8中,设置setSeparatorInset:UIEdgeInsetsZero 已经不起作用了。下面是解决办法首先在vi... 阅读全文
posted @ 2015-12-14 13:42 Rinpe 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 使用起来还是比较简单的, 主要是几个步骤AppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self... 阅读全文
posted @ 2015-12-14 11:17 Rinpe 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 修改一下路径,在终端下输入下面的命令sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer敲回车后,提示输入密码就输入密码。ps:上面路径中的xcode.app改为要使用的xcode的名字, 例如: ... 阅读全文
posted @ 2015-12-12 16:59 Rinpe 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 禁用长按UIWebView时放大镜及选择功能://通过js调用- (void)webViewDidFinishLoad:(UIWebView*)webView{ // Disable user selection [webView stringByEvaluatingJavaScript... 阅读全文
posted @ 2015-12-12 13:28 Rinpe 阅读(978) 评论(0) 推荐(0) 编辑
摘要: // 添加QuartzCore.framework库#import -(void) screenShot{ // 截屏 UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInCont... 阅读全文
posted @ 2015-12-12 11:04 Rinpe 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 使用Storyboard时出现以下警告:warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime a... 阅读全文
posted @ 2015-12-11 13:41 Rinpe 阅读(204) 评论(0) 推荐(0) 编辑
摘要: ios7之前的版本中UIViewController中的view在显示后会自动调整为去掉导航栏的高度的,控件会自动在导航栏以下摆放。在iOS7中UIViewController的wantsFullScreenLayout属性被舍弃了,所有的UIViewController创建后默认就是full Sc... 阅读全文
posted @ 2015-12-11 10:53 Rinpe 阅读(3671) 评论(0) 推荐(0) 编辑