I want to display the modal view controller when button is clicked.I added the following code for show the dialog
Login *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"login"];
vc.view.backgroundColor = [UIColor clearColor];
self.navigationController.modalPresentationStyle = UIModalPresentationCurrentContext;
[self presentViewController:vc animated:YES completion:nil];
Where Login is the class name.But it doesn't worked for me.
And i am following this link Display clearColor UIViewController over UIViewController solution also didnt work.