navigation bar中文翻译、navigation bar是什么意思、发音、用法及例

日期: 栏目:知识类 浏览:

  内容导航:

  1、

  navigation bar

  2、

  隐藏导航栏的两种方法

  1、

  navigation bar

  英:

  美:

  常见释义:

  导航栏;导航条

  1、Put your contact information in a visible place such as the

  navigation bar

  and header.───因此,要把联系信息放在显著的位置,例如,导航条或标题的附近.

  2、Use this page to specify the contents of the

  navigation bar

  for this Project site.───使用此页指定项目站点导航栏内容.

  3、Apples search is integrated into the

  navigation bar

  .───苹果网站的搜索区域集成在导航菜单里。

  4、Lets change the title of the Navigation Bar.───一下导航栏的标题。

  5、Select “Partner” on the

  navigation bar

  .───选择导航栏上的“合作伙伴”。

  1、examination board───考试理事会;考试委员会

  2、navigations───n.航行;航海

  3、navigation───n.航行;航海

  4、Navigation Acts───【水运】航海条例(英国历史上关于航海的一系列立法条例)

  5、arbitration bar───抗弯试棒

  6、navigation laws───航海法规

  7、navigationally───航海地

  8、navigational───adj.航行的,航运的

  9、navigation aid───助航设备;导航设施

  2、

  隐藏导航栏的两种方法

  1.下面这种隐藏导航栏  本人在开发中使用时候发现 导航的透明设置NO  才在push页面没有黑影闪现,但是在本页面使用本隐藏导航栏的方法时候再次push 一个隐藏的导航栏 会存在黑影的闪现,由于在viewWillDisappear  调用了 【self.navigationController setNavigationBarHidden:NO animated:animated】; 同时在viewWillAppear 调用【self.navigationController setNavigationBarHidden:YES animated:animated】;  很短时间内连续调用这个两个方法导致。

  所以注意使用时的控制  。

  - (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.后来本人使用 透明化导航栏 但是这里不会真正隐藏导航栏只是导航栏透明了而已,同时去除黑线,如果不是使用【self imageWithColor:【UIColor clearColor】  而使用【【UIImage  alloc】init】 那只是去除黑线

  - (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;

  }

标签: