How to move this ColorPicker from iPhone to a portion of iPad scene?

点点圈 提交于 2019-12-12 03:13:40

问题


I found a ColorPicker (ILColorPicker) that takes the whole screen on an iPhone. I want to use it in my iPad app (XCode4 using StoryBoards)... it's asking me to "In your view controller's XIB, add a UIView and then set it's class to ILColorPickerView ". I don't want to use the entire scene, just a small part of it... is there another way I can accomplish this? (using Layers, frames, etc)?


回答1:


You could programmatically create a popover (UIPopoverViewController), and put the color picker as the view for your popover.



来源:https://stackoverflow.com/questions/10015985/how-to-move-this-colorpicker-from-iphone-to-a-portion-of-ipad-scene

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!