0

How to display a modal popup that look like from a UITableViewCell (look like option ), which displaying a custom controller?

I'm trying to achieve something like contact app does ( see below ) :

enter image description here

Below is my current implementation, which only displaying common modal :

 TSCAliasViewController *V2 = [[TSCAliasViewController alloc] initWithNibName:nil bundle:nil];
V2.modalPresentationStyle = UIModalPresentationFormSheet;
V2.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;

[self presentModalViewController:V2 animated:YES];
V2.view.superview.frame = CGRectMake(0, 0, 400, 300);
V2.view.superview.center = self.formView.center;

Any idea?

4

1 回答 1

0

您需要使用UIPopoverController。目前它仅适用于 iPad!

于 2013-09-02T07:20:38.400 回答