UITextView setBorderStyle crashes in iOS 5 Simulator

一曲冷凌霜 提交于 2019-12-06 12:46:32

Solved. It's an iOS 5.0 bug, and it's in iOS 5 on devices, too, not just the simulator. A crash will occur when setting the UITextField borderStyle property if the backgroundColor has been set using UIColor's colorWithRed:green:blue:alpha:.

There is no crash if the text field's backgroundColor has been set using a preset color, e.g., clearColor. There is no crash if borderStyle is set to its current value.

I've submitted a but report to Apple (Bug ID 10381834).

First, the retainCount is irrelevant; meaningless, even.

Secondly, if you have a crash, then you have a backtrace and/or crash report. Post it.

Finally, if it crashes in simulator but not on the device it might be a simulator bug. Or not. Could be a bug in your app that only fails catastrophically in the simulator.

Can't say more without more clues.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!