ios - Reload/Refresh View Controller with a specific subview -
I I have exits from a UIViewController when I do a scene with several specific Sbwugh (such as passbook scene), then I I want to reload ViewController and all its sub-views. I say how such root view controller's viewDidLoad and viewWillLayoutSubviews method:
- (IBAction) Disconnect: (UIStoryboardSegue *) segue {self.sourceVC = segue.sourceViewController; Self. Disconnected = yes; ViewController * Root Controller = (View Controller *) ((AppDelegate *) [[UIApplication Shared Application] Rep]). Window.rootViewController; [Root controller viewDidload]; [Root controller Wuvilleautsubdrishy];}
In my view controller class:
- (minus) Drishydidlod {[super Wudidlod]; // no additional setup after loading the view from my nib [Self setup Pibeedatasors];} - (blank) Drishyvollautsuwug {[super Wuwvel Lyyuefsuwug]; CGRect frame = self.view.bounds; CGFloat maxY = (([[[UIDevice currentDevice] system warsons] float value]> = 7.0) \? 20: 0); Frame.origin.y + = maxY; Frame.ize.height - = maxY; If (! _passbookView) {self.passbookView = [[PBPassGroupStackView alloc] initWithFrame: Frame data source: self]; [Self.view addSubview: self.passbookView]; } And {{self.passbookView removeFromSuperview]; Self.passbookView = [[PBPassGroupStackView alloc] initWithFrame: frame data source: self]; [Self.view addSubview: _passbookView]; }}
I load just want to know how the new Pasbukdrishy (with a built in English Segu two new Sbwugh) ??? Thank you.
Comments
Post a Comment