ios - Xcode logging only previously selected table view cell once a new cell is selected -



ios - Xcode logging only previously selected table view cell once a new cell is selected -

i've got table view , each time select new select, logs stats of cell selected before it.

so let's select cell b, won't log if that's first cell i've selected since opening table view. if select cell a, log stats of cell b.. if select cell c log cell a's stats, etc.

any thought why?

code below:

- (void) tableview:(uitableview *)tableview diddeselectrowatindexpath:(nsindexpath *)indexpath { feeditem *feeditem = [[feeditem alloc] init]; feeditem = [self.feeditemlist objectatindex:indexpath.row]; nslog(@"%@ username", feeditem.username); }

wrong method. want didselectrowatindexpath. yours deselect instead of select

ios objective-c uitableview

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 -