I have a UIViewController, then with this code I present a modal view controller for entering a password.
[self performSegueWithIdentifier:@"SeguePassword" sender:self];
In the Storyboard:
Segue Storyboard Identifier = SeguePassword Style = modal Transition = default Animation = not checked
When I click Cancel on a modal that has the following code:
[self dismissViewControllerAnimated:NO completion:^{}]
Now when I get back, the keyboard is hidden. I have a code showing a toolbar with a hide button. And I see it, but not the keyboard.
Does anyone have any ideas or guidelines that they have taken to solve such a problem? It seems to have started recently after the change conversion for iOS 7.
My decision:
, , , , . I.e.., , iPhone.
:
- (NSUInteger) supportedInterfaceOrientations {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight;
} else {
**return (UIInterfaceOrientationPortrait);**
}
}
:
- (NSUInteger) supportedInterfaceOrientations {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight;
} else {
**return (UIInterfaceOrientationMaskPortrait);**
}
}
, , .