UIPickerView can't autoselect last row when compiled under Xcode 4.5.2 & iOS 6

前端 未结 2 1001
再見小時候
再見小時候 2020-12-16 12:51

I have been beating my head against the wall trying to diagnose my app\'s inability to automatically preselect the last row of a UIPickerView using code that successfully wo

2条回答
  •  情深已故
    2020-12-16 13:01

    Definitely looks like a bug relating to the new auto-layout feature in iOS 6. I was experiencing the same thing, but when trying to see if it happened in iOS 5.1, I noticed that it started working.

    Try this: in the storyboard or nib file in question, turn off auto-layout.

提交回复
热议问题