navigation bar中文翻譯,navigation bar是什么意思,navigation bar發(fā)音、用法及例句
- 內容導航:
- 1、navigation bar
- 2、隱藏導航欄的兩種方法
1、navigation bar
navigation bar發(fā)音
英: 美:
navigation bar中文意思翻譯
常見(jiàn)釋義:
導航欄;導航條
navigation bar雙語(yǔ)使用場(chǎng)景
1、Put your contact information in a visible place such as the navigation bar and header.───因此,要把聯(lián)系信息放在顯著(zhù)的位置,例如,導航條或標題的附近.
2、Use this page to specify the contents of the navigation bar for this Project site.───使用此頁(yè)指定項目站點(diǎn)導航欄內容.
3、Apple's search is integrated into the navigation bar.───蘋(píng)果網(wǎng)站的搜索區域集成在導航菜單里。
4、Let's change the title of the Navigation Bar.───一下導航欄的標題。
5、Select “Partner” on the navigation bar.───選擇導航欄上的“合作伙伴”。
navigation bar相似詞語(yǔ)短語(yǔ)
1、examination board───考試理事會(huì );考試委員會(huì )
2、navigations───n.航行;航海
3、navigation───n.航行;航海
4、Navigation Acts───[水運]航海條例(英國歷史上關(guān)于航海的一系列立法條例)
5、arbitration bar───抗彎試棒
6、navigation laws───航海法規
7、navigationally───航海地
8、navigational───adj.航行的,航運的
9、navigation aid───助航設備;導航設施
2、隱藏導航欄的兩種方法
1.下面這種隱藏導航欄 本人在開(kāi)發(fā)中使用時(shí)候發(fā)現 導航的透明設置NO 才在push頁(yè)面沒(méi)有黑影閃現,但是在本頁(yè)面使用本隱藏導航欄的方法時(shí)候再次push 一個(gè)隱藏的導航欄 會(huì )存在黑影的閃現,由于在viewWillDisappear 調用了 [self.navigationController setNavigationBarHidden:NO animated:animated]; 同時(shí)在viewWillAppear 調用[self.navigationController setNavigationBarHidden:YES animated:animated]; 很短時(shí)間內連續調用這個(gè)兩個(gè)方法導致。
所以注意使用時(shí)的控制 。
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES animated:animated];
}
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[self.navigationController setNavigationBarHidden:NO animated:animated];
}
2.后來(lái)本人使用 透明化導航欄 但是這里不會(huì )真正隱藏導航欄只是導航欄透明了而已,同時(shí)去除黑線(xiàn),如果不是使用[self imageWithColor:[UIColor clearColor] 而使用[[UIImage alloc]init] 那只是去除黑線(xiàn)
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.navigationController.navigationBar setBackgroundImage:[self imageWithColor:[UIColor clearColor] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:[self imageWithColor:[UIColor clearColor]]];
}
- (void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
[self.navigationController.navigationBar setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:nil];
}
- (UIImage*)imageWithColor:(UIColor*)color
{
CGRect rect =CGRectMake(0.0f,0.0f,1.0f,1.0f);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context =UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [colorCGColor]);
CGContextFillRect(context, rect);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。