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"
i think you should have to create UIStoryboard object properly with your storyboard name ..
UIStoryboard *StoryboardObj = [UIStoryboard storyboardWithName:@"yourStoryboardName" bundle:nil];
BoookingVC* nextController=[StoryboardObj instantiateViewControllerWithIdentifier:@"BoookingVCID"];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.