目前我正在使用Xcode 4.6.我的应用需要支持最低iOS 4.3.我还想扩展iOS 7的上限支持.Xcode 5,iOS SDK 7是否仍然支持iOS 4.3?iOS 4.3模拟器仍然可以在Xcode 5中使用吗?
我试着阅读Xcode 5 Release Note但它没有提到任何内容.谢谢!
我有一个奇怪的问题.以下子字符串代码崩溃
NSString *string4 = @"<p>some</p><img></img><p></p>end of the story":
[string4 substringWithRange:NSMakeRange(7, [string4 length] - 1)];
Run Code Online (Sandbox Code Playgroud)
我假设范围在边界内但它仍然崩溃.知道为什么会这样吗?以下是它显示的错误.
*由于未捕获的异常'NSRangeException'终止应用程序,原因:' - [__ NSCFConstantString substringWithRange:]:范围或索引超出范围'*第一次抛出调用堆栈:(0x1c92012 0x10cfe7e 0x1c91deb 0x1c6aaa4 0x2bbc 0xf51c7 0xf5232 0x443d5 0x4476f 0x44905 0x4d917 0x27c5 0x11157 0x11747 0x1294b 0x23cb5 0x24beb 0x16698 0x1beddf9 0x1bedad0 0x1c07bf5 0x1c07962 0x1c38bb6 0x1c37f44 0x1c37e1b 0x1217a 0x13ffc 0x24fd 0x2425)libc ++ abi.dylib:terminate调用抛出异常(lldb)