问题标签 [navigationbar]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1606 浏览

iphone - 自定义 navigationController.navigationBar.barStyle 的问题

我通读了整个论坛也许我做错了什么任何帮助都会很棒

tabController = [[UITabBarController alloc] init]; tabController.delegate = self; [tabController setViewControllers: [NSArray arrayWithObjects: //[[[UINavigationController alloc] initWithRootViewController:[[[SearchTableViewController alloc] init] autorelease]] autorelease], //[[[UINavigationController alloc] initWithRootViewController:[[[SearchPhotosViewController alloc] init] autorelease]] autorelease], //[[[UINavigationController alloc] initWithRootViewController:[[[SearchPhotosViewController alloc] init] autorelease]] autorelease], //[[[UINavigationController alloc] initWithRootViewController:[[[SearchPhotosViewController2 alloc] init] autorelease] ] autorelease], [[[UINavigationController alloc] initWithRootViewController:[[[crap2 alloc] init] autorelease]] autorelease], [[[UINavigationController alloc] initWithRootViewController:[[[crap3 alloc] init] autorelease]] autorelease], [[[UINavigationController alloc] initWithRootViewController:[[[crap alloc] init] autorelease]] autorelease], nil]]; //tabController.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

//tabController.navigationController.navigationBar.barStyle = UIBarStyleBlack; //tabController.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque; //tabController.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; tabController.navigationController.navigationBar.barStyle = UIBarStyleBlack; [窗口添加子视图:[tabController 视图]];

0 投票
1 回答
2649 浏览

firefox - Firefox 中的 CSS 水平导航栏对齐问题

我的导航栏在 Firefox 和 Opera 中是关闭的。文本下方的填充明显多于上方。我已经多次更改我的代码试图解决这个问题,所以如果我当前的代码中有错误,我深表歉意。在 Safari 和 Chrome 中看起来不错。任何人都可以帮助找到我的错误吗?

CSS:

HTML:

谢谢!

0 投票
2 回答
6854 浏览

objective-c - Objective-C:导航栏中的背景图像和标题

我的导航栏中需要背景图片和标题。对于图像,我写了一个类别:

我在我的 AppDelegate 中调用了这个类别,并在整个应用程序中有背景图像:

每个 ViewController 都有一个标题:

但是设置背景图片后,标题出现了问题。

在每个作品的第一个视图中,我看到了背景图像和标题 :-) 但在下一个视图中,标题消失了。只有背景图像可见。也许标题在图像下方?

从技术上讲,两者都可以显示。有了这个技巧,它就起作用了:

  1. 在打开下一个 ViewController 之前隐藏导航栏:

    [self.navigationController setNavigationBarHidden:YES];

  2. 在下一个 ViewController 中显示导航栏:

    [self.navigationController setNavigationBarHidden:NO];

现在,图像和标题是可见的,但这个解决方案不是最好的 ;-)

0 投票
3 回答
1572 浏览

ipad - IPAD - UISplitViewController 的 MainWindow NavigationBar tintColor 问题

问题:

每次我将 iPad 转为纵向模式并显示弹出框时,mainWindow 的导航栏的 TintColor 都会恢复为灰色。

细节:

  • 我从 Xcode 3.2.5 创建了应用程序并选择了基于拆分视图的应用程序。
  • 我使用 Interface builder 将 MainWindow.xib 的 navigationBar tintColor 更改为蓝色。
  • 然后,我最初以横向模式运行该应用程序,并且 tintColor 在模拟器上显示为蓝色值。
  • 当我将方向更改为纵向并单击按钮以显示 MainWindow 弹出框时,它的导航栏与弹出框的边框融合在一起,忽略了蓝色。
  • 但是当我将方向转回横向模式时,MainWindow 的 tintColor 会恢复到其原始颜色,即灰色。即使将代码写入 viewDidAppear 块,我也无法再编辑它的值。

这是一个错误吗?还是我需要配置更多设置才能使其正常工作?

提前致谢

——乔

0 投票
3 回答
956 浏览

iphone - NavigationBar 中缺少“后退按钮”

我提出了一个新的观点:

但是在新视图的导航栏中,没有返回按钮。

为什么这个?我知道我可以创建一个自定义后退按钮,但我想要默认的,我该如何解决?

谢谢

0 投票
1 回答
441 浏览

ios4 - iPhone SDK:使用导航栏打开 TableViewController

我现在正在创建我的第一个 iPhone 应用程序,它进展顺利,尽管我遇到了一个障碍。我正在尝试打开我的设置视图(UITableViewController),尽管导航栏不会显示...我已经成功打开了视图,只是无法显示导航栏。这是我的代码:

}

如果我做错了什么,请告诉我。

0 投票
1 回答
245 浏览

iphone - iPhone导航栏titleView同步请求问题

这是我的情况:我正在发出同步 HTTP 请求来收集数据,但在此之前我想在导航栏标题视图中放置一个加载视图。请求结束后,我想将 titleView 返回为零。

我知道加载视图有效,因为在请求结束后会显示加载视图。

我的问题:此时应该很明显,但基本上我想延迟该 [self makeHTTPconnection]功能直到[self showLoading]完成。

谢谢你的时间。

0 投票
1 回答
697 浏览

iphone - 带有系统图标和图像的自定义导航栏按钮

我试图弄清楚如何将自定义背景图像添加到使用系统图标或图像图标的 NavigationBar 按钮。

我已经想出了如何将背景图像添加到带有文本的 NavigationBar 按钮,但我正在努力弄清楚如何使用图标按钮来实现这一点。

对于我遵循本教程的文本按钮:http: //idevrecipes.com/2010/12/13/wooduinavigation/

如何创建带有图标的自定义按钮?

谢谢!

0 投票
5 回答
3872 浏览

iphone - 在基于导航的应用程序-iphone中的选定视图中隐藏导航栏

我正在研究应用程序,我已经基于应用程序导航。我只想从选定的视图中隐藏导航栏,我该怎么做?我使用了以下代码,但它从整个应用程序中隐藏了该栏 self.navController.navigationBarHidden = YES;

如果有什么办法请告诉我..

提前致谢

0 投票
1 回答
623 浏览

iphone - 从地址簿中删除取消按钮

我想将地址簿显示为选项卡栏项目,因此我在选项卡栏的委托中定义了此代码:

显示了联系人列表,但导航栏中有一个取消按钮,该按钮无用,我无法将其从导航栏中删除。你能帮助我吗?谢谢