走在 iOS 的路上
研究 iOS 的點滴記錄
2012年6月25日 星期一
[iOS] 設定 UITabBar 隱藏
隱藏 - 在 [self.
navigationController
pushViewController:animated:] 之前設定
self
.
hidesBottomBarWhenPushed
=
YES
;
顯示
- (
void
)viewWillDisappear:(
BOOL
)animated
self
.
hidesBottomBarWhenPushed
= NO
;
[iOS] 設定 UINavigationBar 透明度
打開
- (
void
)viewWillAppear:(
BOOL
)animated
self
.
navigationController
.
navigationBar
.
translucent
=
YES
;
self
.
navigationController
.
navigationBar
.
alpha
=
0.7f
;
關閉
- (
void
)viewWillDisappear:(
BOOL
)animated
self
.
navigationController
.
navigationBar
.
translucent
=
NO
;
self
.
navigationController
.
navigationBar
.
alpha
=
1.0f
;
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)