objective c - XCode 4.6 dequeueReusableCellWithIdentifier: forIndexpath: not working -
objective c - XCode 4.6 dequeueReusableCellWithIdentifier: forIndexpath: not working -
i've been working on project while. fine, , today upgraded xcode 4.6...all of sudden, crash. if there no info (i'm using core data), load blank tableview. seek add together in other view controller, crash. same issue on simulator , on device. "all exceptions" breakpoint enabled, debugger pointing line:
reedcell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier forindexpath:indexpath]; i "uitableview: unrecognized selector..." exception. class subclass of uitableviewcontroller , ought have tableview, no? when set next test code viewdidload, don't confirmation. in other words, tableview no longer responds method. heck? if deprecated, don't see documentation of that.
if ([self.tableview respondstoselector:@selector(dequeuereusablecellwithidentifier:forindexpath:)]) { nslog(@"rtvc responds selector dequeuereusablecellwithidentifier:forindexpath:"); } i've done cleans, deleted simulator, checked view controller in storyboard still right class (it is). tried sending message "self.tableview" instead of "tableview". no fix. again, working fine, haven't changed anything, upgraded 4.6. thanks!
this method added in ios 6. hence not exist in older simulators.
you can see when method introduced looking @ docs uitableview
availability available in ios 6.0 , later.
objective-c xcode uitableview ios6
Comments
Post a Comment