问题
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