i want to show my view as a model view. In iPad there are four method to show the view as modal which is listed 1. Full Screen 2. Page Sheet 3. Form sheet 4. Current Context
i use following code to display the view as model
-(void)OpenContactPicker { 开发者_开发技巧
ABPeoplePickerNavigationController *ContactPicker = [[ABPeoplePickerNavigationController alloc] init];
ContactPicker.peoplePickerDelegate = self;
[self presentModalViewController:ContactPicker animated:YES];
//[self.modalViewController presentModalViewController:ContactPicker animated:YES];
[ContactPicker release];
}
above code open the view in full screen mode but i want to some different.
Please suggest how can i show this view as Page Sheet or Form sheet or Current Context
Check the modalPresentationStyle
property.
精彩评论