How can I have a popover come from a tab instead of a view
问题 I have a tabbar app, and I want a popover to come from one of the tabs. Is there a good/easy way to do this without changing views? 回答1: There isn't currently a way to directly (through a supported api call) get the frame of a specific tab bar item. What I do is just show the popup from the left end of the tab bar like this: CGFloat tabBarHeight = self.tabBarController.tabBar.bounds.size.height; CGRect rect = CGRectMake(0, 0, tabBarHeight, tabBarHeight); [popoverController