ios - FirstViewController doesn't work on removing the subview of SecondViewController -


The first view controller

I am using a UIStoryBoard, so that the first viewer View view as a subview, removing controller sub

  - (IBAction) btnMoveTo: (ID) sender {UIStoryboard * Storyboard = [UIStoryboard storyboardWithName: @ "Mainstoreboard" bundle: zero]; UIViewController * vc = [Storyboard Instant Viewer Identifier: @ "seconds"]; Vc.view.backgroundColor = [UIColor clear collar]; Self. Model Presentation Style = UIModal PresentationConfigurationSettings; [Self-Present Model Week Controller: Animated Vcc: No]; }   

second viewer. M

  - (zero) viewDidoad {self.view.opaque = YES; Self.view.backgroundColor = [UIColor clear collar]; } - Draw with (IBAction): (ID) sender {[with self-view removal zoom animation: 2 options: zero]; }   

When I use with the Dre function, the second view controller's view is removed and the first viewer is back. However, when I use the button - (IBAction) the btnMoveTo: (id) sender function. It does not work, nothing really does happen. Any suggestions or help would be greatly appreciated.

Perhaps you can try declaring * vc as: UIViewController * VC = [manual . Storyboard Instantent ControlWire Indifier: @ "seconds"];

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

asp.net - MVC [HandleError] HandleErrorAttribute called twice when using global logging -