質問

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