UITextView setBorderStyle crashes in iOS 5 Simulator
问题 I have a strange situation in one view controller where this line crashes in the iOS 5 simulator: // myTextField is created in a NIB myTextField.borderStyle = UITextBorderStyleNone; It's okay in the device (and both device and simulator on iOS 4.3). I've checked the connections in the NIB (even deleted and reconnected). myTextField has a retainCount of 2 at this point in the code. I'm setting other attributes (e.g., "text" and "userInteractionEnabled" prior to this point, and those do not