开发者

iPad: Show view as Model View

开发者 https://www.devze.com 2022-12-25 06:50 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消