在Xcode11之前,工具栏上有一个Assistant Editor按钮(双环图标),单击它编辑器会分为左右两个窗口,很适合使用storyboard的开发者。然而在Xcode11后,这个图标消失了。
解决方案一:
使用这个按钮代替,单击它可以在同屏右侧多显示一个编辑器(数量是没有限制的)
解决方案二:
使用以下快捷键,和以前的Assistant Editor功能一样,只能同屏两个编辑器
control + option + command + return : Show Assistant Editor
command + return : Show Editor only (hide Assistant Editor)