2013-03-06 17:38:14.764 liveiPad[506:607] -[NSIndexPath settableVIEwStyle:]: unrecognized selector sent to instance 0x57ac402013-03-06 17:38:14.785 liveiPad[506:607] *** Terminating app due to uncaught exception 'NSinvalidargumentexception',reason: '-[NSIndexPath settableVIEwStyle:]: unrecognized selector sent to instance 0x57ac40'*** Call stack at first throw:(0 CoreFoundation 0x3182564f __exceptionPreprocess + 1141 libobjc.A.dylib 0x30229c5d objc_exception_throw + 242 CoreFoundation 0x318291bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 1023 CoreFoundation 0x31828649 ___forwarding___ + 5084 CoreFoundation 0x3179f180 _CF_forwarding_prep_0 + 485 UIKit 0x32a30a11 -[UItableVIEw(UItableVIEwInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 5526 UIKit 0x32a3076b -[UItableVIEw(UItableVIEwInternal) _createPreparedCellForGlobalRow:] + 347 UIKit 0x32a290cd -[UItableVIEw(_UItableVIEwPrivate) _updateVisibleCellsNow:] + 9368 UIKit 0x32a2827d -[UItableVIEw layoutSubvIEws] + 1409 UIKit 0x329d45fb -[UIVIEw(CALayerDelegate) layoutSublayersOfLayer:] + 2610 CoreFoundation 0x31792f03 -[NSObject(NSObject) performSelector:withObject:] + 2211 QuartzCore 0x361c5bb5 -[CALayer layoutSublayers] + 12012 QuartzCore 0x361c596d CALayerLayoutIfNeeded + 18413 QuartzCore 0x361cb1c5 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 21214 QuartzCore 0x361cafd7 _ZN2CA11Transaction6commitEv + 19015 QuartzCore 0x361c4055 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 5616 CoreFoundation 0x317fca35 __CFRUNLOOP_IS_CALliNG_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 1617 CoreFoundation 0x317fe465 __CFRunLoopDoObservers + 41218 CoreFoundation 0x317ff75b __CFRunLoopRun + 85419 CoreFoundation 0x3178fec3 CFRunLoopRunspecific + 23020 CoreFoundation 0x3178fdcb CFRunLoopRunInMode + 5821 GraphiCSServices 0x365b241f GSEventRunModal + 11422 GraphiCSServices 0x365b24cb GSEventRun + 6223 UIKit 0x329fdd69 -[UIApplication _run] + 40424 UIKit 0x329fb807 UIApplicationMain + 67025 liveiPad 0x000024cb main + 15826 liveiPad 0x00002428 start + 40 ) terminate called after throwing an instance of 'NSException'
有没有人知道为什么会崩溃?
这是我在页面控制选择中使用的一些代码
CGfloat pageWIDth = self.svMinistatementtable.frame.size.wIDth; int page = floor((self.svMinistatementtable.contentOffset.x - pageWIDth / 2) / pageWIDth) + 1; self.pcMinistatementDetail.currentPage = page; CGRect VIEwframe = CGRectMake((896*self.pcMinistatementDetail.currentPage),896,235 ); UIVIEw *subvIEw = [[UIVIEw alloc] initWithFrame:VIEwframe]; subvIEw.tag=self.pcMinistatementDetail.currentPage; CGRect frametable= CGRectMake( 0,235 ); UItableVIEw *tableVIEw= [[UItableVIEw alloc]initWithFrame: frametable]; tableVIEw.tag=self.pcMinistatementDetail.currentPage; tableVIEw.dataSource=self; tableVIEw.delegate=self; if([strCallingVIEw isEqualToString:@"Account"]) { tablevIEwMiniStatement=tableVIEw; } else if([strCallingVIEw isEqualToString:@"CreditCard"]) { tablevIEwCCUnbilledTransaction=tableVIEw; } [subvIEw addSubvIEw: tableVIEw]; [self.svMinistatementtable addSubvIEw:subvIEw]; [tableVIEw reloadData];code here解决方法 在UItableVIEw类中没有这样的方法被调用
- (ID)initWithFrame:(CGRect)frame
您还需要指定样式,无论是简单还是分组,
正确的方法是 – (ID)initWithFrame:(CGRect)框架样式:(UItableVIEwStyle)样式;
UItableVIEw * tableVIEw = [[UItableVIEw alloc] initWithFrame:frametable style:UItableVIEwStylePlain];或分组
总结以上是内存溢出为你收集整理的ios – 应用程序崩溃[NSIndexPath setTableViewStyle:]:无法识别的选择器发送到ipad中的实例全部内容,希望文章能够帮你解决ios – 应用程序崩溃[NSIndexPath setTableViewStyle:]:无法识别的选择器发送到ipad中的实例所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)