BUG
thelatewind
为API生,为框架死,为Debug奋斗一辈子;吃符号的亏,上大小写的当,最后死在需求上。
展开
-
ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with e
把Deployment Target 改为4.3或以后 图片:屏幕快照 2014-10-13 16.56.51.png原创 2015-07-10 08:44:21 · 418 阅读 · 0 评论 -
CodeSign error: code signing is required for product type 'Application' in SDK 'i ..
1 把Project中的Build Setting中的 Code Signing Identify进行设置。 2 把Target中的Build Setting中的 Code Signing Identify进行设置 不用设置成Don't Code Sign。 3 clear,Build就ok。原创 2015-07-10 08:37:47 · 240 阅读 · 0 评论 -
could not build module ‘Foundation’, could not build module ‘UIKit’……23个错误
pch文件加入 #import #ifndef __IPHONE_3_0 #warning "This project uses features only available in iOS SDK 3.0 and later." #endif #ifdef __OBJC__ #import #import原创 2015-07-10 08:40:58 · 688 阅读 · 0 评论 -
tableview 中有些cell会隐藏
如果用storyboard新建类别,storyboard里面textview不能作为一个单独的section,不然会导致一些 tableviewcell 隐藏。原创 2015-07-10 08:42:37 · 391 阅读 · 0 评论 -
定位,虚拟键盘,推送有问题
1、不能定位 打勾 设置- 隐私-定位服务-你的app-使用应用程序期间(始终) 打开app再进设置后会发现,你打勾的使用程序期间(始终)又给取消了。。。。 原来iOS8需要一些方法。。。 如果需要仅在前台定位,你在调用startUpdatingLocation 前需要调用requestWhenInUseAuthorization 如果需要在前后台定位,你在调用startUpda原创 2015-07-10 08:47:57 · 339 阅读 · 0 评论 -
上传图片(http post,webservice与http区别)
由于iOS无法通过html表单来上传图片,因此想要上传图片,必须实现http请求,而不能像其他语言那样通过html表单的post就能上传。 格式 Content-type: multipart/form-data, boundary=AaB03x --AaB03x content-disposition: form-data; na原创 2015-07-10 08:54:26 · 624 阅读 · 0 评论 -
使用SDWebImage加载大量图片后造成内存泄露的解决办法
SDWebImage的知名度就不用说了,github上近10k的star,国内外太多的App使用其进行图片加载。 但是最近在使用过程中发现,在UITableView中不断加载更多的内容,使用SDWebImage会造成内存占用越来越大,导致memory warning最终terminate,稍微找了下问题原因,发现不少开发者都遇到过这个问题,中文的资料没有搜到该问题的解决办法,为了方便国内其他原创 2015-09-25 11:03:02 · 1532 阅读 · 0 评论 -
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-07-10 08:35:01 · 598 阅读 · 0 评论 -
The model used to open the store is incompatible with the one used to create the store
我们修改了Data Model文件,增加了新的Entity,包括Attribute属性、Relationship关系等等。 解决办法: (1) 最简单的办法是,在iOS 5 或者 6的模拟器中,删除App,然后重新运行就可以了。 (2) 第二种办法是使用Data Model 数据模型的版本属性: 给Data Model(也就是被管理对象模型)添加一个新的版本: 在项目原创 2015-07-10 08:39:48 · 215 阅读 · 0 评论