objective c - Accessing Data While searchDisplayController is Active -


my iphone app using core data, uisearchbar, uisearchdisplaycontroller, uitableview , uiactionsheet. when no search being performed, can determine row selected user, if search active , selection made user of specific row, how 1 determine row selected user?

example: following code works without error when no search active:

- (void)actionsheet:(uiactionsheet *)actionsheet willdismisswithbuttonindex:(nsinteger)buttonindex {     nsindexpath *selectedindexpath = [self.tableview indexpathforselectedrow];     event *event = (event *)[[self fetchedresultscontroller] objectatindexpath:selectedindexpath];         [self showurl:[nsurl urlwithstring:event.sitesite] withtitle:@""]; 

but, url null if use above method determine corresponding "event.sitesite" or url, while [self.searchdisplaycontroller isactive] equates true.

when use uisearchdisplaycontroller second tableview super imposed on first. tabelview have query find out row selected.

see uisearchdisplaycontroller class reference details.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -