随笔分类 -  IOS

摘要:使用起来还是比较简单的, 主要是几个步骤AppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self... 阅读全文
posted @ 2015-12-14 11:17 Rinpe 阅读(380) 评论(0) 推荐(0)
摘要:修改一下路径,在终端下输入下面的命令sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer敲回车后,提示输入密码就输入密码。ps:上面路径中的xcode.app改为要使用的xcode的名字, 例如: ... 阅读全文
posted @ 2015-12-12 16:59 Rinpe 阅读(202) 评论(0) 推荐(0)
摘要:禁用长按UIWebView时放大镜及选择功能://通过js调用- (void)webViewDidFinishLoad:(UIWebView*)webView{ // Disable user selection [webView stringByEvaluatingJavaScript... 阅读全文
posted @ 2015-12-12 13:28 Rinpe 阅读(994) 评论(0) 推荐(0)
摘要:// 添加QuartzCore.framework库#import -(void) screenShot{ // 截屏 UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInCont... 阅读全文
posted @ 2015-12-12 11:04 Rinpe 阅读(345) 评论(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 阅读(213) 评论(0) 推荐(0)
摘要:ios7之前的版本中UIViewController中的view在显示后会自动调整为去掉导航栏的高度的,控件会自动在导航栏以下摆放。在iOS7中UIViewController的wantsFullScreenLayout属性被舍弃了,所有的UIViewController创建后默认就是full Sc... 阅读全文
posted @ 2015-12-11 10:53 Rinpe 阅读(3693) 评论(0) 推荐(0)
摘要:我的解决方法是:info.plist中找到LSApplicationQueriesSchemes, 然后在下方添加Key如:-canOpenURL: failed for URL: "momochs://xxxxxxxx"就添加momochs添加后:LSApplicationQueriesSchem... 阅读全文
posted @ 2015-12-10 20:33 Rinpe 阅读(1549) 评论(0) 推荐(0)
摘要:如果是同一个静态库中的文件链接的时候有冲突,可能是这个静态库不支持模拟器,真机运行就好了。或者可以使用xcode7的虚拟机跑也是没问题的。duplicate symbol _llvm.cmdline in:/Users/RinpeChen/Documents/项目/mq_dd/DuoDuo/DuoD... 阅读全文
posted @ 2015-12-10 17:29 Rinpe 阅读(432) 评论(0) 推荐(0)
摘要:原因如下:There's no problem with your implementation. All those warnings mean is the apps which each URL scheme refer to are not installed on the device.I... 阅读全文
posted @ 2015-12-09 23:14 Rinpe 阅读(1668) 评论(0) 推荐(0)
摘要:基本应用如果你有self-satisfied cell,那么你应该做的是:#import "UITableView+FDTemplateLayoutCell.h"- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath... 阅读全文
posted @ 2015-12-09 10:55 Rinpe 阅读(385) 评论(0) 推荐(0)
摘要:1.状态栏高亮颜色在info.plist中添加View controller-based status bar appearance设置为 "NO"在AppDelegate.m中添加代码[[UIApplication sharedApplication] setStatusBarStyle:UISt... 阅读全文
posted @ 2015-12-08 18:00 Rinpe 阅读(322) 评论(0) 推荐(0)
摘要:先看官网的图可以看到官方说了xcode7可以让所有人都更轻松的将app运行在自己的设备上,而无需开发者帐号。不过xcode7需要OSX10.11的支持,而目前(2015.06.10)下载后者的开发者预览版是需要开发者帐号的,我在网上找到了资源传到了百度云,OSX10.11:链接:http://pan... 阅读全文
posted @ 2015-12-08 10:14 Rinpe 阅读(211) 评论(0) 推荐(0)
摘要:现在很多APP为了让用户更加快捷方便注册,都会使用第三方进行登录,例如QQ/微信/淘宝等。但是上线审核被拒,大致会出现以下内容: Additionally, we found that your app requires the installation of another app before... 阅读全文
posted @ 2015-12-04 09:48 Rinpe 阅读(592) 评论(0) 推荐(0)
摘要:[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextE 阅读全文
posted @ 2015-12-03 12:00 Rinpe 阅读(2623) 评论(0) 推荐(0)
摘要:一、概要iOS开发时,项目中会引用许多第三方库,CocoaPods(https://github.com/CocoaPods/CocoaPods)可以用来方便的统一管理这些第三方库。二、安装由于网上的教程基本都大同小异,但细节之处还不是很完善,所以借机会在这里补充下:注:要使用CocoaPods,那... 阅读全文
posted @ 2015-12-02 17:28 Rinpe 阅读(223) 评论(0) 推荐(0)
摘要:简单说就是这么几步:选择Target -> Build Settings 菜单,找到\”User Header Search Paths\”设置项新增一个值"${SRCROOT}",并且选择\”Recursive\”,这样xcode就会在项目目录中递归搜索文件自动补齐功能马上就好使了。 阅读全文
posted @ 2015-12-02 17:21 Rinpe 阅读(242) 评论(0) 推荐(0)
摘要://uin=2977046873为QQ号NSString *urlString = @"mqq://im/chat?chat_type=wpa&uin=2977046873&version=1&src_type=web";if([[UIApplication sharedApplication] c... 阅读全文
posted @ 2015-12-01 15:07 Rinpe 阅读(3223) 评论(0) 推荐(0)
摘要:UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init]; self.layout = layout; // 设置每格的大小 layout.itemSize = CGSizeMake(DD_S... 阅读全文
posted @ 2015-11-25 15:53 Rinpe 阅读(3171) 评论(0) 推荐(0)
摘要:最近iOS项目中要求导航栏的返回按钮只保留那个箭头,去掉后边的文字,在网上查了一些资料,最简单且没有副作用的方法就是[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) forB... 阅读全文
posted @ 2015-11-24 17:44 Rinpe 阅读(791) 评论(0) 推荐(0)
摘要:TableViewCell的高度计算应该是所有开发者都会使用到的东西,之前都是用代码计算的方法来计算这个高度。最近有时间看了几个计算Cell高度的方法。基本上都用到了AutoLayout,这篇首先介绍一下需要了解的三个AutoLayout属性。一.名词解析intrinsicContentSize:字... 阅读全文
posted @ 2015-11-21 16:29 Rinpe 阅读(1256) 评论(0) 推荐(1)