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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -