In all the examples of UIModalPresentationFormSheet, presentModalViewController is used. However, according to documentation, presentModalViewController has been deprecated in iOS 6.0. But I do not see any examples where UIModalPresentationFormSheet is shown with pushViewController.
Which one should I use?
First of all, set your controller's presentationStyle
controllerToBePresented.modalPresentationStyle = UIModalPresentationFormSheet;
Then
[self presentViewController:controllerToBePresented animated:YES completion:^{
}];