In the Popover chapter, there is a subheading Displaying a Popover where it states that we can set the popoverContentsSize property so that the popover is the same size as the view we’ve configured in the CargoColorChooser nib. Well …
I have checked and double checked the code and my View in IB for CargoColorChooser is just large enough to enclose all the 6 colour buttons but every time I run the app the size of my popover takes up almost the entire screen (according to the debugger it’s actually 748x712). My ‘from’ arrow is fine and the popover works correctly.
It says in Apple’s documentation:
“When changing the value of this property, the width value you specify must be at least 320 points and no more than 600 points. There are no restrictions on the height value.”
My view size is 199 wide so it breaks this, but then so is the size of the view in the downloaded Prag Prog sample code. However, your official code works just fine.
Any ideas what silly mistake I’m making here?
Thanks in advance.