IOS 5 page curl with custom view controller

I am trying to use page curl to show a subpage using an Xcode storyboard. Everything works when I have a subpage as a UIViewController , but when I change it to a custom UIViewController , the subpage is black. It happens both on the device and on the simulator. iOS 5 Version Xcode 4.2

Has anyone seen this before?

Edit: this happens every time I use a custom UIViewController , regardless of whether I use push or model. If I use a custom UITableViewController, this is normal.

+4
source share
1 answer

I have in my ViewController that runs this method:

 -(void)prepareForSegue:(UIStoryboardSegue*)segue sender:(id)sender{ NSLog(@"prepare segue modal.partial_curl"); if([[segue identifier] isEqualToString: @"sample"]){ "setgoalviewcontrollerobjecthere" = [segue destinationViewController]; } 

}

don't forget to import the .h, alloc and init file. name segue identifier in the storyboard file "sample", and select a modal, transitional partial curl style. The easiest way works every time. If you do it just programmatically, you need to do a lot more → google

domink

0
source

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


All Articles