문제

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