我正在尝试与现有的默认地图相同。当我单击地图中的注释引脚时,我会得到一个带有标题、副标题和信息按钮的小弹出框,当我单击信息按钮时,我可以立即启动 PopoverController。
问题 :
我想在地图上为弹出框设置动画,它是滑动的,然后视图控制器被打开。我怎样才能做到这一点。这是我用来启动 PopOver 的代码。
detailsViewController = [[PopOverTableViewController alloc] initWithStyle:UITableViewStylePlain];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:detailsViewController];
self.poc = [[UIPopoverController alloc] initWithContentViewController:navController];
[self.poc setPassthroughViews:viewsPassage];
//size as needed
poc.popoverContentSize = CGSizeMake(320, 450);
//show the popover next to the annotation view (pin)
CGRect popOverFrame = view.bounds;
popOverFrame.size.width = 14;
popOverFrame.size.height = 14;
[poc presentPopoverFromRect:popOverFrame inView:view
permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];