ios - How to control object from another view controller - Objective-C -
let's have uiview object in viewcontroller a, @ point switched viewcontroller b. there way change uiview object in viewcontroller if example button pressed in viewcontroller b, when go viewcontroller uiview object in new position.
i tried doesn't seem anything.
-(void)viewwillappear:(bool)animated { if (returning) { self.aview.frame = cgrectmake(newx, newy, newwidth, newheight); }
many thanks.
i'd suggest following given current starting point:
-(void)viewwillappear:(bool)animated { [super viewwillappear:animated]; if (returning) { self.aview.frame = cgrectmake(newx, newy, newwidth, newheight); [self.aview setneedslayout]; [self.aview layoutifneeded]; } }
i assume have found way setting returning
from view controller b. (if not, there relevant information in other comments.)
Comments
Post a Comment