I have three buttons in my view. After setting the cornerRadus in the viewDidLoad() : button.layer.cornerRadius = 20
I get the following error message in the lo
This problem happen with Xcode 7. In my case i removed the UIViewControllerBasedStatusBarAppearance
from Info.plist
and the problem solved! See the answer in this post:
It's a bug in 9b5:
https://forums.developer.apple.com/thread/13683
File a RADAR with Apple.
You can set an environmental variable via this menu: Product -> Scheme -> Edit Scheme. Under the "Run" item, locate the "Arguments" tab, you'll see "Environmental Variables" in the tab, Add CG_CONTEXT_SHOW_BACKTRACE
and set its value to YES.
On Xcode 7:
In case you still want the status bar is hidden, just change UIViewControllerBasedStatusBarAppearance
in the Info.plist
file into View controller-based status bar appearance
. Don't forget to set it by NO