xcode iOS 信息按钮

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9371665/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:22:54  来源:igfitidea点击:

iOS Information Button

iphoneobjective-ciosxcodebutton

提问by Randolph Levant

On a number of iPhone applications I'm seeing a little blue circular button that, when clicked on, displays information about the application. Is this something that is built into the iOS SDK, or is it simply a custom button with a custom image?

在许多 iPhone 应用程序上,我看到一个蓝色的圆形小按钮,单击该按钮时会显示有关该应用程序的信息。这是内置在 iOS SDK 中的东西,还是只是带有自定义图像的自定义按钮?

回答by sch

You can make an info button in Interface Builder by placing a button (a Rounded Button) and changing its type into dark or light info button.

您可以通过放置一个按钮(圆形按钮)并将其类型更改为深色或浅色信息按钮来在 Interface Builder 中制作信息按钮。

You can also crate an info button programmatically like this:

您还可以像这样以编程方式创建信息按钮:

UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeInfoDark];

回答by JTApps

It's in the Interface Builder. Place a Round-Rect button and change the type to "Info Light" or "Info Dark"

它在界面生成器中。放置一个 Round-Rect 按钮并将类型更改为“Info Light”或“Info Dark”

Then you simply link it to creating a new subview in which you place all the information about the app or whatever else you would like to put there.

然后您只需将它链接到创建一个新的子视图,您可以在其中放置有关应用程序的所有信息或您想放在那里的任何其他信息。

回答by Shubhank

  • Yes, it is built into the SDK.
  • Place a button in interface builder and choose info darkand info lightfrom the button types in the attributes inspector.
  • 是的,它内置于 SDK 中。
  • 在界面构建器中放置一个按钮,info dark然后info light从属性检查器中的按钮类型中进行选择。

Is this the button?

这是按钮吗?

screenshot of view

视图截图

It is available in dark gray and light gray only.. if it is not.. Please post a link to which button you are referring to.

它仅提供深灰色和浅灰色。如果不是。请张贴您所指的按钮的链接。

回答by KevinChang

You can make an info button in Interface Builder by placing a button (a Rounded Button) and changing its type into dark or light info button.

您可以通过放置一个按钮(圆形按钮)并将其类型更改为深色或浅色信息按钮来在 Interface Builder 中制作信息按钮。