I am using the following way to transition modally between two view controller, i am trying to fade in using UIModalTransitionStyleCrossDissolve but it shows warning in iphone-4S and as an error in Iphone 6S, i also imported UIKIT in header.Can anyone give me clues about the mistake i am doing
BoookingVC* nextController=[self.storyboard instantiateViewControllerWithIdentifier:@"BoookingVCID"];
nextController.userId=userId;
nextController.customerId=customerId;
nextController.providesPresentationContextTransitionStyle = YES;
nextController.definesPresentationContext = YES;
nextController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[nextController setModalPresentationStyle:UIModalPresentationOverCurrentContext];
[self.navigationController presentViewController:nextController animated:YES completion:nil];
It shows the following warning, i am not able to understand-"Ambigous use of internal declaration"