参考
概要
initWithContentViewController:を用いて初期化してpresentPopoverFromBarButtonItem:permittedArrowDirections:animated:で表示させれば良い。
方向指定
enum {
UIPopoverArrowDirectionUp = 1UL << 0,
UIPopoverArrowDirectionDown = 1UL << 1,
UIPopoverArrowDirectionLeft = 1UL << 2,
UIPopoverArrowDirectionRight = 1UL << 3,
UIPopoverArrowDirectionAny = UIPopoverArrowDirectionUp | UIPopoverArrowDirectionDown | UIPopoverArrowDirectionLeft | UIPopoverArrowDirectionRight,
UIPopoverArrowDirectionUnknown = NSUIntegerMax
};
popoverの生成消滅タイミングを知りたいとき
- (BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController
- (void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController
最終更新:2011年06月07日 15:52