I have a bit of code that i use to transition between views.
if (CGRectIntersectsRect(mainSprite.frame, backTopPathImg.frame)) {
levelOneViewController * levelOne2 = [[levelOneViewController alloc]initWithNibName:nil bundle:nil];
[self presentModalViewController:levelOne2 animated:NO];
[levelOne2 changeSpriteLocationTopPath];
}
This makes a regular transition where it just cuts to the other view. My question is how could i make this a fade transition? As in a long fade through black. Keep in mind i am not using a navigation controller, just #importing the view controller then using the above code. Thanks 🙂
See
modalTransitionStyleproperty of UIViewController.Try the following