objective c - Application crashing on numberOfRowsSection -
objective c - Application crashing on numberOfRowsSection -
-(nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section { homecoming [array count]; // <--- crashes here }
i'm not sure why crashing considering array simple nsarray.
your "array" must not nsarray. can provide context array defined? using arc?
a simple test set next line before homecoming statement:
nslog(@"array = %@; array class = %@", array, array.class)
paste output , can help further! guess array beingness deallocated, , there's other (or garbage) property in memory. wouldn't surprised if saw array.class nsnumber...
objective-c arrays
Comments
Post a Comment