xcode - How to change it back from activity indicator to disclosure in UITableViewCell after pushViewController -


how change activity indicator disclosure ??

the problem is:

when didselectrow, made disclosure activity indicator because load picture next view controller , it's worked, dont have luck change disclosure after pushviewcontroller. tried reload table 2ndviewcontroller it's crashed.

so have solution problem..

thanks in advance

this code in didselectrow :

-(void)threadstartanimating:(id)data   {         [activityview startanimating];       [self.navigationcontroller pushviewcontroller:bdvcontroller  animated:yes];     }    - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath {      uitableviewcell *cell = [tableview cellforrowatindexpath:indexpath];     activityview = [[uiactivityindicatorview alloc] initwithactivityindicatorstyle:uiactivityindicatorviewstylegray];     [cell setaccessoryview:activityview];          [nsthread detachnewthreadselector:@selector(threadstartanimating:) totarget:self withobject:nil];            // navigation logic -- create , push new view controller     if(bdvcontroller == nil)          bdvcontroller = [[detailviewcontroller alloc] initwithnibname:@"detailviewcontroller" bundle:[nsbundle mainbundle]];       apprecord *apprecord = [self.entries objectatindex:indexpath.row];         bdvcontroller.appsrecord = apprecord;    bdvcontroller.headertext.text = apprecord.appname;      bdvcontroller.title = apprecord.artist;     [bdvcontroller.tableview reloaddata];   } 

the best way set pointer nil accessoryview, example:

cell.accessoryview = nil; cell.accessorytype = uitableviewcellaccessorydetaildisclosurebutton; cell.selectionstyle = uitableviewcellselectionstylegray; 

in code these operations work fine.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -