How to move this ColorPicker from iPhone to a port

2019-09-05 02:19发布

问题:

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.