ios - Not updating UIView of subView? -
i have posted " here" .
if put part of code [self loadlocationview] in uibutton , viewdidload method , it works fine here.
but whenever choose location tableveiw , calling configureviewslider method , gets called method loadlocationview not updating ui. here have tried far.
-(void) configureviewslider { if (_detailitem) { location=[_detailitem description]; //[self performselectoronmainthread:@selector(btnlocations:) withobject:nil waituntildone:false]; //[btnlocations sendactionsforcontrolevents:uicontroleventtouchdown]; // [self loadlocationview]; [self performselectoronmainthread:@selector(loadlocationview) withobject:nil waituntildone:no]; //[self loadview]; nslog(@"location %@", location); } } -(void) loadlocationview { _viewlocbangalore.frame= cgrectmake(10, 10, 303,255); [self.view addsubview:_viewlocbangalore]; // [self.view bringsubviewtofront:_viewlocbangalore]; //[_viewlocbangalore setneedsdisplay]; } what else have achieve . have tried in possible ways . no use .
please suggestion @ least, i'm ready approach way ready deserve task (i..e.. have added uitableviecontrller has locations , when user touches location , uiview should update ).
why u called configureviewslider method loadlocationview method directly location selection tableview method add view: _viewlocbangalore.frame= cgrectmake(10, 10, 303,255); [self.view addsubview:_viewlocbangalore];
Comments
Post a Comment