I want to add an「i」button on the top right in the navigationbar, just like the one in the Stocks application. Does iPhone SDK has this built-in button? I looked up the document but couldn't find any. Thanks a lot.
我想在导航栏的右上角添加一个“i”按钮,就像Stocks应用程序中的按钮一样。 iPhone SDK有这个内置按钮吗?我查了一下文件却发现没找到。非常感谢。
1 个解决方案
#1
Sure, this is a standard UIButton with a type of info light. You can set it up in IB. However, you can't add it to your Navigation Bar, since nav bars can only have bordered buttons. The simple solution is to create it manually and it via code using [UIBarButtonItem initWithCustomView:...]
当然,这是一种标准的UIButton,带有一种信息灯。您可以在IB中进行设置。但是,您无法将其添加到导航栏,因为导航栏只能有边框按钮。简单的解决方案是使用[UIBarButtonItem initWithCustomView:...]通过代码手动创建它
#1
Sure, this is a standard UIButton with a type of info light. You can set it up in IB. However, you can't add it to your Navigation Bar, since nav bars can only have bordered buttons. The simple solution is to create it manually and it via code using [UIBarButtonItem initWithCustomView:...]
当然,这是一种标准的UIButton,带有一种信息灯。您可以在IB中进行设置。但是,您无法将其添加到导航栏,因为导航栏只能有边框按钮。简单的解决方案是使用[UIBarButtonItem initWithCustomView:...]通过代码手动创建它