iOS工具
duoduo_333
.O(∩_∩)O奋斗中的攻城师.
展开
-
cocoaPods的安装和使用
打开终端按下面步骤:1.移除ruby的原地址gem sources --remove https://rubygems.org/2.添加ruby的原地址gem sources -a http://ruby.taobao.org/3.查看ruby的源地址gem source -l4.安装cocoapodssudo gem install cocoapods原创 2014-10-06 13:09:14 · 756 阅读 · 0 评论 -
Xcode6.0 解决无法输入中文的办法.
使用Xcode6.0模拟器不能在textField里面输入中文,也切换不过来,模拟器也添加了中文键盘,还是不能切换键盘输入中文.解决办法:选中Xcode →product→ scheme → Edit scheme→ run → options→ application Region 选项改为“中国”然后就可以输入中文了原创 2015-03-10 16:40:17 · 3435 阅读 · 1 评论 -
switch case is in protected scope解决办法
出现错误:switch case is in protected scope一半情况下这种写法:switch (XXX) { case XXX: XXXX break; default: break; }解决办法原创 2015-03-17 15:35:51 · 1204 阅读 · 0 评论 -
[ XXX handleSegmentControl:]: unrecognized selector sent to instance 0x7fe2de49a8e0
[ XXX handleSegmentControl:]: unrecognized selector sent to instance 0x7fe2de49a8e0我的错误原因每个人的可能不一样,分享一下:原因:我用XIB建的UISegmentControl,添加的方法,之前添加过一次响应方法,后来删除,又重新添加了一次响应方法,导致响应方法有两个,有冲突.如图解决办法:删原创 2015-03-05 11:57:43 · 1077 阅读 · 0 评论 -
reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
错误信息:reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'collectViewCell''查找原因:UICollectionView注册的是时候出错;如下:[self.collectionView registerNib:[UINib nibWithNibName:@"sch原创 2015-02-14 15:08:40 · 3721 阅读 · 0 评论 -
iOS The file “XXX” couldn’t be opened because you don’t have permission to view it.
打开一个工程编译运行出现iOS The file “UIMenuBarDemo” couldn’t be opened because you don’t have permission to view it.搜资料,解决方法:点击工程出现的警告,会出现如下图所示:点击 Preform Changes继续就OK了原创 2015-02-10 10:39:36 · 1310 阅读 · 0 评论 -
-pie can only be used when targeting iOS 4.2 or laterclang: error: linker command failed with exit c
在code4App上下载的一个下拉菜单的demo,打开就爆出标题所示的问题.解决方法:TARGET→ general → DeployMent info → Deployment Tagget 把版本设置高一点就OK了.每天一点积累.......原创 2015-02-05 12:51:25 · 810 阅读 · 0 评论 -
二维码扫描(ZBar,ZXing不知道有没有问题)与arm64的问题.
做二维码扫描的时候,查了一些资料,都说ZBar的功能更全面一些,于是就用了ZBar的开源代码,导入工程中,编译一直出错主要错误信息: Undefined symbols for architecture x86_64:查了一些资料,有说把TARGET→Builte Setting→Vaild Architecture 中armv7s和arm64删除只保留armv7,虽然暂时可以解决问题原创 2015-02-03 09:03:31 · 1584 阅读 · 1 评论 -
iOS 真机测试 爆红 png问题
iOS真机测试,自己一个人搞,问问多多.真机测试的运行出现 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate fai原创 2015-01-28 14:21:27 · 565 阅读 · 0 评论 -
SVN Working copying 'xxxxx/xxxx/xxxx' locked
使用SVN想更新上传时提示Working copying 'xxxx/xxxx/xxx' locked解决方法:选中你的项目,上面工具栏一行找到 Action → Cleanup all Working Copy Locks原创 2015-06-05 09:52:52 · 2209 阅读 · 0 评论