Question

I am using MNColorPicker in my universal iOS application. I am presenting it in a UIPopoverController in iPad and its working fine.

Now I need to implement similar functionality in iPhone but as iPhone doesn't support UIPopoverController I am using a third party pop over like control CMPopTipView. Hen I present the pop over without setting the size of MNColorPicker manually then it is presented properly but the size of pop over becomes very big for an iPhone and when I try to change the size of MNColorPicker, it doesn't get presented properly. Bellow is the screenshot for the same.

Improper pop over

Please give me some pointers as to how I can resize MNColorPicker so that it can be presented in a CMPopTipView properly

Was it helpful?

Solution 2

I changed the frames given in function

- (void)_layoutViewsForInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation

in class MNColorPicker and it worked.

OTHER TIPS

You can use the BFColorPickerPopover control for iPhone.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top