Tag: nsrangeexception

应用程序崩溃NSRangeException

我们使用Xcode4.5为iOS创build了Phonegap应用程序,并使用HTML创build了集成的Bing地图。 我们正在使用cordova-1.9.0 当我们在iOS7中运行我们的应用程序时,应用程序崩溃,出现下面的exception。 *由于未捕获exception“NSRangeException”,原因:'* – [WebCoreSharedBufferData getBytes:range:]:range {0,4000}超出数据长度0' 应用程序在放大时刷新 – 缩小地图。 地图是使用mapdotnet-8.3加载的

终止应用程序,由于未捕获的exception“NSRangeException”,原因:'*** – :索引2超出空NSArray的界限

日志中的错误: *由于未捕获exception'NSRangeException',原因:'* – [ NSArray0 objectAtIndex:]:index 2超出了空NSArray的界限'*** 终止应用程序 ***第一个抛出调用堆栈:(0 CoreFoundation 0x000000010fdd8b0b __exceptionPreprocess + 171 1 libobjc.A。 dylib 0x00000001143a6141 objc_exception_throw + 48 2的CoreFoundation 0x000000010fdf027d – [__ NSArray0 objectAtIndex:] + 93 3 DropInn 0x000000010d598fc4 _TFC7DropInn21ListingViewController9tableViewfTCSo11UITableView14didSelectRowAtV10Foundation9IndexPath_T_ + 5972 4 DropInn 0x000000010d599837 _TToFC7DropInn21ListingViewController9tableViewfTCSo11UITableView14didSelectRowAtV10Foundation9IndexPath_T_ + 87 5的UIKit 0x00000001122b3dcd – [UITableView的_selectRowAtIndexPath:animation:的scrollPosition:notifyDelegate:] + 1763 6的UIKit 0x00000001122b3fe3 – [ UITableView _userSelectRowAtPendingSelectionIndexPath:] + 344 […]

UIScrollView setContentSize使用未捕获的NSRangeException崩溃

一些UIScrollView的内容被删除后,调用setContentSize会使应用程序崩溃。 int toolbarHeight = [[[self navigationController] toolbar] frame].size.height; int navbarHeight = [[[self navigationController] navigationBar] frame].size.height; int totalHeight = toolbarHeight + navbarHeight; // contentWidth is 640 CGSize contentSize = CGSizeMake(contentWidth, [scrollView frame].size.height – totalHeight); [scrollView setContentSize:contentSize]; // Crash happens here, contentSize is perfectly valid *由于未捕获exception'NSRangeException',原因:'* – [__ NSArrayM objectAtIndex:]:index 1 beyond bounds [0 .. 0]' 什么可能导致这个? […]