Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
format
Source Link
Paul Roub
  • 36.5k
  • 27
  • 88
  • 95

I'm using xcode 5.1.1 with storyboard. I have a button on main menu and it pops to another view controller with this code

VC *secondVC = [[VC alloc] init]; [self presentViewController:secondVC animated:YES completion: nil];

VC *secondVC = [[VC alloc] init]; [self presentViewController:secondVC animated:YES completion: nil]; 

And there I have back button with this code

[self dismissViewControllerAnimated:YES completion: nil];

[self dismissViewControllerAnimated:YES completion: nil]; 

And when I pop to secondVC xcode gives me is error: Presenting view controllers on detached view controllers is discourage <UINavigationController: 0x8c94510>.

Presenting view controllers on detached view controllers is discourage <UINavigationController: 0x8c94510>.

I'm also having problem with rotation, it doesn't work properly.

I'm using xcode 5.1.1 with storyboard. I have a button on main menu and it pops to another view controller with this code

VC *secondVC = [[VC alloc] init]; [self presentViewController:secondVC animated:YES completion: nil];

And there I have back button with this code

[self dismissViewControllerAnimated:YES completion: nil];

And when I pop to secondVC xcode gives me is error: Presenting view controllers on detached view controllers is discourage <UINavigationController: 0x8c94510>.

I'm also having problem with rotation, it doesn't work properly.

I'm using xcode 5.1.1 with storyboard. I have a button on main menu and it pops to another view controller with this code

VC *secondVC = [[VC alloc] init]; [self presentViewController:secondVC animated:YES completion: nil]; 

And there I have back button with this code

[self dismissViewControllerAnimated:YES completion: nil]; 

And when I pop to secondVC xcode gives me is error:

Presenting view controllers on detached view controllers is discourage <UINavigationController: 0x8c94510>.

I'm also having problem with rotation, it doesn't work properly.

Source Link
Alex Egorkin
  • 201
  • 1
  • 2
  • 4

Presenting view controllers on detached view controllers is discourage

I'm using xcode 5.1.1 with storyboard. I have a button on main menu and it pops to another view controller with this code

VC *secondVC = [[VC alloc] init]; [self presentViewController:secondVC animated:YES completion: nil];

And there I have back button with this code

[self dismissViewControllerAnimated:YES completion: nil];

And when I pop to secondVC xcode gives me is error: Presenting view controllers on detached view controllers is discourage <UINavigationController: 0x8c94510>.

I'm also having problem with rotation, it doesn't work properly.