If you want your code to work on iOS 7 as well as iOS 8 you should use one of the rangeOfString calls instead. Basically if the range returned has a length of zero, the substring is not there.
/* The...
分类:
其他好文 时间:
2014-12-30 19:07:04
阅读次数:
293
Xcode提醒错误:-[__NSCFString absoluteURL]: unrecognized selector sent to instance 0x8c4d3a0*** Terminating app due to uncaught exception 'NSInvalidArgumen...
分类:
其他好文 时间:
2014-09-21 16:46:10
阅读次数:
444
最近的工作需要将工程打包成静态库文件,然后提供给别人使用。在工程中有引用MBProgressHUD,在打包出静态库文件后,写了个Demo,引用了其中的一段代码来显示MBProgressHUD,在iOS 6的设备上跑时却崩溃了,错误提示为:“-[__NSCFString sizeWithAttributes:]: unrecognized selector sent to XXXXXX”...
分类:
其他好文 时间:
2014-07-30 23:56:25
阅读次数:
276