ios - UITableView Automatically Select Row -


when uitableview loads, want row, in section, selected code in didselectrowatindexpath execute when user loads uitableview. i've tried code below doesn't execute code in didselectrowatindexpath section. thoughts?

nsindexpath *indexedpath = [nsindexpath indexpathforrow:0 insection:0]; [tableview selectrowatindexpath:indexedpath animated:yes scrollposition: uitableviewscrollpositionnone]; 

make use of code.this automatically call didselectrowatindexpath when view loaded.

  [self tableview:tableview didselectrowatindexpath:[nsindexpath indexpathforitem:0 insection:0]]; 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -