Hi all,
why am I getting warnings in my console about
Does this has to do with autoLayout or something? How can I fix this? It's really annoying
why am I getting warnings in my console about
Code:
<UIView: 0x7f9de124b4a0; frame = (0 0; 320 568); autoresize = W+H; layer = <CALayer: 0x7f9de124b570>>'s window is not equal to <UIAlertController: 0x7f9de123e1b0>'s view's window!
Code:
UIAlertViewController *myAlert = [UIAlertController alertControllerWithTitle: @"Error" message: @"You've entered an invalid port number!\nPlease review your entered information." preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *cancelAction = [UIAlertAction
actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel action")
style:UIAlertActionStyleCancel
handler:^(UIAlertAction *action)
{
NSLog(@"Cancel action");
}];
[myAlert addAction:cancelAction];
[self presentViewController:myAlert animated:YES completion:nil];
Does this has to do with autoLayout or something? How can I fix this? It's really annoying