如何将suview添加到ipad中的UIImagePickerViewController中
我需要在 iPad 的 UIImagePickerViewController 中添加两个按钮。我不知道如何增加 UIPopOverViewController 的大小,如果可能的话,我会将它们添加为子视图。请在这方面提供帮助,是否有更好的想法向 UIImagePickerViewController 添加子视图?
提前致谢, 塞卡尔·贝塔拉姆。
I need to add two button in the UIImagePickerViewController for the iPad. I don't know how to increase the size of the UIPopOverViewController if it is possible I will add them as a subview. Please help on this regard, is there any better ideas to add a subview to the UIImagePickerViewController?.
Thanks in Advance,
Sekhar Bethalam.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
严格来说,这是按原样使用的收缩包装物体之一,您不应该尝试改变外观和感觉。任何获取选择器内部方法的黑客行为都会使您的应用程序无法提交。
但是,您是否尝试过将视图对象从选择器视图控制器中取出并将其放置在您自己的视图层次结构中?
您可以使用
UIPopoverController
的popoverContentSize
方法更改弹出内容的大小Strictly speaking this is one of those shrink wrapped objects that are provided to be used as is and you shouldn't be trying to change the look and feel. Any hackiness to with getting hold of the pickers internal methods would render your app unsubmitable.
However have you tried taking the view object out of the picker view controller and placing it in your own view hierachy?
You can change the pop-over content size with the
popoverContentSize
method ofUIPopoverController