Warning: attempt to submit

My problem is when I call the function:

[self performSegueWithIdentifier: @"FinalPlayPT" sender: self]; 

It works, but I have this warning:

A warning. Try to imagine whose view is not in the hierarchy of windows!

I am using storyboard, xcode 4.5.2 and iOS6, any ideas? Thanks.

By the way, if I use UIButton for segue, there is no warning, but I need to do this programmatically.

I am trying to get everyone to call a different VC and always the same warning.

I do not know what to do.

+4
source share
1 answer

It is like you are trying to complete your session before your controller appears on the screen. Move your call to viewDidAppear: or later.

0
source

Source: https://habr.com/ru/post/1446246/


All Articles