i'm trying to change color of a UIToolbar above the keyboard, but I can not recreate the color black semi transparent keyboard, i have tried this:

alertToolBar.barTintColor = [UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.5f];

but this is the result:

enter image description here

有帮助吗?

解决方案

alertToolBar.barStyle = UIBarStyleBlack;

That should give the iOS 7 Blur that you are looking for. Don't tint the toolbar, just set the tool bar style.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top