ios - Load UIViewController -
I have a UIViewController with a black background and I do this:
CredenciaisViewController * Obj = [self.storyboard instantiateViewControllerWithIdentifier: @ "Creditian"]; [_viewContainer addSubview: obj.view]; _viewContainer.alpha = 1; The CredenciaisViewController has a red background color, but when it is light on my half And when Ubuton does not work even in white part. >
Why does this happen? And how can I fix it?
I got it now! I have kept
and I did my action button:
- (IBAction) Most credentials: (ID) sender {credentials weave controller * credenciaisview = [ Self Storyboard Institution Visualistrologist identifier: @ "Credencial"]; [Add Child VUI Controller: credenciaisiew]; [CredenciaisView didoveParentViewController: self]; CredenciaisView.view.frame = self.containerView.bounds; [See Self.container Ad-view: credenciaisview view]; } And then worked well!
Comments
Post a Comment