UISegmentedControl 上的 Arrow UIPopoverController
我在右侧栏按钮项目上有一个带有 4 个按钮的分段控件。现在这段代码可以工作:
[actionSheet showFromBarButtonItem:self.switchView.navigationItem.rightBarButtonItem animated:YES];
但是 UIActionSheet(弹出窗口)的箭头没有指向正确的方向。所以我可能必须使用这个:
[actionSheet showFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated];
但我不知道如何正确使用它..我尝试了不同的方法,但没有好的结果。有人有这个吗?
谢谢
I have a segmentedcontrol on the rightbarbuttonitem with 4 buttons. Rightnow this code works:
[actionSheet showFromBarButtonItem:self.switchView.navigationItem.rightBarButtonItem animated:YES];
But the arrow of the UIActionSheet (popover) doesn't point right. So i probably have to use this:
[actionSheet showFromRect:(CGRect)rect inView:(UIView *)view animated:(BOOL)animated];
But i don't know how to use it properly.. I tried different approaches but with no good results. Someone having this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你应该这样做。
You should do it like.