加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swift – 如何在Xcode 7 OSX中创建NSRadioButton组

发布时间:2020-12-14 05:56:49 所属栏目:百科 来源:网络整理
导读:我正在关注如何创建单选按钮组 this tutorial。但是,似乎Radio Group在Xcode 7库中已经不再可用了,我没有找到很多关于它的信息。如何创建这样的东西: 非常感谢。 从 Xcode 7 release notes起: The template for Radio buttons in the Interface Builder
我正在关注如何创建单选按钮组 this tutorial。但是,似乎Radio Group在Xcode 7库中已经不再可用了,我没有找到很多关于它的信息。如何创建这样的东西:

非常感谢。

从 Xcode 7 release notes起:

The template for Radio buttons in the Interface Builder object library is now implemented as individual NSButton objects,rather than the older NSMatrix,which is discouraged on OS X v10.8 and later. Radio buttons automatically act as a group (selecting one button will unselect all other related buttons) when they have the same superview and -action method. (16965941)

所以拖动单个单选按钮,并确保您将它们连接到同一个插座!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读