mercredi 15 juin 2016

How to Set InputView with ViewController


self.view = [[[NSBundle mainBundle] loadNibNamed:@"KeyboardView" owner:self options:nil] objectAtIndex:0];
self.inputView = (UIInputView*)self.view;

Above code is for setting Nib file to Inputview, That is working, But below code is not working ...

NewViewController * myViewController = [[UIStoryboard storyboardWithName:@"Keyboard"  bundle:nil] instantiateViewControllerWithIdentifier:@"NewView"];
self.view = myViewController.view;

self.inputView = (UIInputView*)self.view;

Aucun commentaire:

Enregistrer un commentaire