【发布时间】:2012-01-24 06:27:06
【问题描述】:
根据要求,当视图来回移动时,顶部导航栏不应移动....
所以我在UIWindow 的实例上添加了顶栏……但是当我打开相机时,这个顶栏也出现在那里……有没有办法隐藏这个顶栏。
我隐藏了默认导航栏,而是使用了imageView 对象。
我创建了一个从superView 中删除它的函数,但它不起作用。
代码::
UIImageView *imgViewNavigatioBar=[[UIImageView alloc] init];
imgViewNavigatioBar.frame=CGRectMake(self.window.bounds.origin.x, self.window.bounds.origin.y, kAppWidth, 100.0);
imgViewNavigatioBar.image=[UIImage imageNamed:kNavigationBarImage];
[[self window] addSubview:imgViewNavigatioBar];
【问题讨论】: