티스토리 뷰
투명하게 만들면 Flexible 아이템을 사용해서 정렬 편하게 할수 있어서...
http://stackoverflow.com/questions/2468831/couldnt-uitoolbar-be-transparent
http://blog.blackwhale.at/2010/07/transparent-uitoolbar/
http://stackoverflow.com/questions/2468831/couldnt-uitoolbar-be-transparent
http://blog.blackwhale.at/2010/07/transparent-uitoolbar/
@interface TransparentToolbar : UIToolbar @end @implementation TransparentToolbar // Override draw rect to avoid // background coloring - (void)drawRect:(CGRect)rect { // do nothing in here } // Set properties to make background // translucent. - (void) applyTranslucentBackground { self.backgroundColor = [UIColor clearColor]; self.opaque = NO; self.translucent = YES; } // Override init. - (id) init { self = [super init]; [self applyTranslucentBackground]; return self; } // Override initWithFrame. - (id) initWithFrame:(CGRect) frame { self = [super initWithFrame:frame]; [self applyTranslucentBackground]; return self; } @end
'나름 프로그래밍? > Objective-C' 카테고리의 다른 글
UIWebView 다 불러온 페이지 소스 가져오기 (0) | 2011.09.29 |
---|---|
NSString 한글 2바이트로 계산.. (0) | 2011.07.14 |
통화(금액) 형식 지정 (0) | 2011.06.29 |
UIWebView 컨텐츠 크기 알아오기 (0) | 2011.06.16 |
날짜 다루기 (0) | 2011.06.16 |