简体   繁体   English

情节提要NSTabView TabViewItem定位

[英]Storyboard NSTabView TabViewItem positioning

Im on Xcode 8.2, OSX, Objective C 我在Xcode 8.2,OSX,Objective C上

I have a NSWindow instance with a NSTabView in a storyboard. 我在情节提要中有一个带有NSTabView的NSWindow实例。 I'd like to change positions of the tabs. 我想更改标签的位置。 It feels like i'm missing something, this HAS to be easy... 感觉好像我缺少什么,这很容易...

在此处输入图片说明

The order in the Screenshot is the order they appear. 屏幕截图中的顺序是它们出现的顺序。 Dragging doesn't work. 拖动不起作用。 I didn't find a position flag either. 我也没有找到位置标记。

EDIT: I misunderstood your question - sorry. 编辑:我误会了你的问题-对不起。 In case of pure NSTabView dragging and dropping in Interface Builder works just fine for that task, I cannot take exact screenshot (because command key automatically positions views) but you should see a blue line between tabs with a radio button at the left end: 如果在Interface Builder中使用纯NSTabView拖放就可以完成该任务,则无法获取确切的屏幕截图(因为命令键会自动定位视图),但是您应该在选项卡之间看到一条蓝线,并且在左端有一个单选按钮:

在此处输入图片说明

Go to your storyboard an manually readjusts the outlets from the rightmost button, you can use it multiple times, even if outlet is set for one view controller already. 转到情节提要中,通过最右边的按钮手动重新调整插座,即使已经为一个视图控制器设置了插座,也可以多次使用。 Take a look: 看一看: 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM