2012-05-16 2 views
0

UIToolbar가 보이는 사진을 허용하는 사진 앱처럼 투명하게 보이게하는 방법을 궁금합니다. UIToolbar를 IB에 배치했습니다. IB에서는 tintColor와 backgroundColor를 모두 ClearColor로 설정합니다. 코드에서UIToolbar 반투명 사진 앱

, 또한 수행

_webViewToolbar.translucent = YES; 
_webViewToolbar.alpha = 0.5; 

불행하게도, 그것은 단지 다음과 같습니다

enter image description here

어떤 생각? 감사!

답변

0

체크 다음 코드 줄을

_toolbar.barStyle = UIBarStyleBlackTranslucent;//Deprecated 

편집

_toolbar.barStyle = UIBarStyleBlack; 
    _toolbar.translucent = YES; 

체크 UIKit.Framework

UIInterface.h 클래스 당신은 발견 할 것이다 follwing을

// for UINavigationBar and UIToolBar 

typedef enum { 
UIBarStyleDefault   = 0, 
UIBarStyleBlack   = 1, 

UIBarStyleBlackOpaque  = 1, // Deprecated. Use UIBarStyleBlack 
UIBarStyleBlackTranslucent = 2, // Deprecated. Use UIBarStyleBlack and set the translucent property to YES 
} UIBarStyle; 

감사합니다. neil.