iOSCombobox icon indicating copy to clipboard operation
iOSCombobox copied to clipboard

drawRect function is never called when compiled with XCode5....

Open ehlersd opened this issue 12 years ago • 3 comments

Any help on this would be appreciated. For some reason, the drawRect function is never being called, and hence the text field is never drawn.

ehlersd avatar Sep 14 '13 18:09 ehlersd

Well, found the cause. The control's width is being set to zero. When I force it back, it displays correctly....but unsure why it's being set to width zero, and only on iOS7. This control is on a storyboard.

Also, when the picker is actually displayed, the width is again reset to zero.

ehlersd avatar Sep 14 '13 18:09 ehlersd

Ended up having something to do with changes to AutoLayout. I had to add constraints for height and width of the fields so they wouldn't auto-resize.

ehlersd avatar Sep 14 '13 20:09 ehlersd

Sorry I didn't get to you sooner - just saw this. I've found auto layout to be pretty pesky. I'll add a blurb to the readme about this if your problem is resolved. Have you had any other issues? I haven't gotten around to testing it on iOS 7.

jakemwood avatar Sep 16 '13 17:09 jakemwood