iphone - Selecting a specific row in UITableview -


i have address book in app. in that, there tableview , contact details page(refer screenshot). when add new contact, added contact details displayed in contact detail page how make added contact selected in tableview..? note: contacts sorted in alphabetical order in tableview..

if adding recent array in end of tableview

if (indexpath.row==[yourcontactary count]-1) {         [tableview selectrowatindexpath:indexpath                                     animated:no                               scrollposition:uitableviewscrollpositionnone];     } 

or

if adding in tableview index of array indexpath applycode, like.

nsinteger indexofarry=[yourcontactary indexofobjectidenticalto:yourrecentaddedrecord]; nsindexpath *indexpath=[nsindexpath indexpathforrow:indexofarry insection:section]; 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -