
ios
小巴同学
这个作者很懒,什么都没留下…
展开
-
The version of CocoaPods used to generate the lockfile is higher
执行pod install时出错,提示如下:The version of CocoaPods used to generate the lockfile is higher that the one of the current executable. Incompatibility issues might arise.问题原因:CocoaPods版本低了解决办法原创 2014-03-24 16:34:46 · 5612 阅读 · 0 评论 -
UIButton 多个事件 响应同一函数
一般的N v 1绑定方法一般是每次绑定一个事件,如:UIControlEventTouchDown、UIControlEventTouchUpInside等。每个事件的响应函数一般也不同,所以大部分时候这么写:[btn addTarget:self action:@selector(action1:) forControlEvents:UIControlEventTouch原创 2014-03-10 11:41:23 · 1422 阅读 · 0 评论 -
Code Sign error: No matching provisioning profile found: Your build settings specify a provisioni...
参考地址:http://stackoverflow.com/questions/1760518/codesign-error-provisioning-profile-cannot-be-found-after-deleting-expired-prof大概步骤如下:1.找到项目中的**.xcodeproj文件,右键打开包内容;2.然后找到project.pbxproj文件原创 2014-03-09 15:46:52 · 1569 阅读 · 0 评论 -
iOS UIControl 事件的说明
1)UIControlEventTouchDown指鼠标左键按下(注:只是“按下”)的动作2)UIControlEventTouchDownRepeat指鼠标左键连续多次重复按下(注:只是“按下”)的动作,比如,鼠标连续双击、三击、……、多次连击。说明:多次重复按下时,事件序列是这样的:UIControlEventTouchDown -> (UICont原创 2014-03-11 14:37:44 · 696 阅读 · 0 评论 -
在编译RegexKitLite的时候报错
在编译RegexKitLite的时候,报错如下:Undefined symbols for architecture i386:"_uregex_open", referenced from:_rkl_getCachedRegex in RegexKitLite.o"_uregex_groupCount", referenced from:_rkl_ge原创 2014-02-28 10:06:22 · 1033 阅读 · 0 评论 -
Cannot use respondsToSelector using ARC on Mac
When I call respondsToSelector in an ARC environment, I get the following error message Automatic Reference Counting Issue No known instance method for selector respondsToSelector:This is th翻译 2014-02-28 14:30:32 · 1636 阅读 · 0 评论 -
CocoaPods安装和使用教程
CocoaPods是什么?当你开发iOS应用时,会经常使用到很多第三方开源类库,比如JSONKit,AFNetWorking等等。可能某个类库又用到其他类库,所以要使用它,必须得另外下载其他类库,而其他类库又用到其他类库,“子子孙孙无穷尽也”,这也许是比较特殊的情况。总之小编的意思就是,手动一个个去下载所需类库十分麻烦。另外一种常见情况是,你项目中用到的类库有更新,你必须得重新下载新版本,重新原创 2014-01-23 17:47:58 · 526 阅读 · 0 评论 -
OS X 10.9 Mavericks下如何安装Command Line Tools(命令行工具)
不过升级后安装命令行工具(Command Line Tools)时发现官网没有clt的下载安装包了,原来改了,使用命令在线安装。打开终端,输入命令:xcode-select --install 选择“安装”,然后同意安装协议。原创 2014-01-22 15:34:20 · 1129 阅读 · 0 评论 -
iOS程序打包流程图
原创 2013-10-15 10:46:27 · 1310 阅读 · 2 评论 -
iOS error: No visible @interface for 'xxxx' declares the selector 'alloc'
iOS error: No visible @interface for 'Project' declares the selector 'alloc'up vote4down votefavoriteI am initialising an object like so:Project *Projec翻译 2013-10-14 23:30:15 · 12179 阅读 · 0 评论 -
arc
什么是ARCAutomatic Reference Counting,自动引用计数,即ARC,可以说是WWDC2011和iOS5所引入的最大的变革和最激动人心的变化。ARC是新的LLVM 3.0编译器的一项特性,使用ARC,可以说一举解决了广大iOS开发者所憎恨的手动内存管理的麻烦。在工程中使用ARC非常简单:只需要像往常那样编写代码,只不过永远不写retain,release和a转载 2014-04-22 10:27:58 · 821 阅读 · 0 评论