0

I need to create a PopUpOver for the iPad .I need to create PopUpOver just like below images.

Actually I am confuse what will be called this PopUpOver and what are the class available to draw these types of PopUpOver for the ipad.

please let me know what it is and how it will be created? image 1) options PopUpOver(black image) image 2) that sharing option popup

enter image description here

enter image description here

Christien
  • 1,213
  • 4
  • 18
  • 32

2 Answers2

3

Simply design your own view and add it on selected view/ rect

    popoverController = [[UIPopoverController alloc] initWithContentViewController:imagePickerController];
    popoverController.delegate = self;
    [popoverController presentPopoverFromRect:self.view.bounds inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

and dont forgot to include < UIPopoverControllerDelegate > delegate in .h file

Madhu
  • 1,542
  • 1
  • 14
  • 30
1

For option 1 you need UIPopoverController, you have the docs and code examples here

For option 2 you need UIActivityViewController, doc here

jcesarmobile
  • 51,328
  • 11
  • 132
  • 176
  • I actually wanted the `UIActivityViewController` for sharing purpose but problem is that UIActivityViewController support only `ios6` not before that..what can I do to support before ios version for sharing purpose.. – Christien Feb 20 '13 at 11:12
  • For previous versions you have to use the UIActionSheet, but it doesn't have icons, just buttons. – jcesarmobile Feb 20 '13 at 11:28
  • ok thanks man!! and one more doubt plz clear ..in image 1, which is UIPopoverController the icons are on which thing?? means it is not on the UIActionSheet.. – Christien Feb 20 '13 at 11:44
  • 1
    In the UIPopoverController you can load a custom UIViewController. If you create the .xib file with the buttons you want. BTW, the UIPopoverController only works on iPad, the UIPopoverController in image 1 isn't a real UIPopoverController, it's just a UIView with buttons that they show when you tap the Options button. – jcesarmobile Feb 20 '13 at 11:59