摘要: type {( "text/json", "application/json", "text/javascript" )}, got text/html" UserInfo=0x6d7dc80 {NSErrorFailingURLKey=http://10.10.10.109:8090/fruit/index.php/list/fruitlist/?p=1, NSLocalizedDescription=Expected content type {( "text/json", ... 阅读全文
posted @ 2013-05-30 17:24 茄瓜写程序 阅读(958) 评论(0) 推荐(0)
摘要: 有不少朋友反应,升级Xcode到最新的4.6.1版本之后,会有下面的错误:Error:PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))其实这只是一个不同Xcode版本之间的一点小冲突,解决方法非常容易,如下:选择Xcode菜单的Products(产品)按住键盘的Option按键,然后选择图示的Clean Build Folder回去继续工作。。。 ^_^原文地址:http://www.rockia.net/2013/03/fix-xcode-update- 阅读全文
posted @ 2013-04-24 12:44 茄瓜写程序 阅读(132) 评论(0) 推荐(0)
摘要: 获取沙盒目录路径的函数NSString * homeDir = NSHomeDirectory();获取Documents目录路径的方法NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);NSString *docDir = [paths objectAtIndex:0];获取Caches目录路径的方法NSArray *paths =NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserD 阅读全文
posted @ 2012-10-19 17:50 茄瓜写程序 阅读(131) 评论(0) 推荐(0)