我在故事板中有一个标签栏控制器,我想重新排列项目,但我看不到任何项目.当我运行它时,它们显示没有问题,但它们在故事板中不可见.我正在使用XCode 6.1.1.有没有人碰到这个?

创建的故事板XCode 4.5.1无法打开,XCode 4.2并显示以下错误消息.
This document "XXXXX.storyboard" could not be opened. Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility.
将部署目标更改为iOS 5.0不足Document Versioning(如谷歌搜索结果所示),但没有任何成功.
对此有任何修复?
我有使用两种语言(阿拉伯语/英语)的故事板的iPhone应用程序如何从阿拉伯语本地化故事板切换到英语故事板,而无需更改语言iPhone设置(在运行时)
我有一个ios应用程序使用故事板和一堆视图控制器.
添加新的ViewController后,配置了标识(Storyboard ID)

我尝试使用以下代码实例化新的ViewController:
SurveyNewViewController *newSurvey = [[self storyboard] instantiateViewControllerWithIdentifier:@"newSurveyView"];
[self presentViewController:newSurvey animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)
一切似乎都是正确的,但在模拟器上运行应用程序时崩溃:
** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'Storyboard (<UIStoryboard: 0xa340fa0>) doesn't contain a view controller
with identifier 'newSurveyView''
Run Code Online (Sandbox Code Playgroud)
这有什么可能的解释吗?我在系统的不同位置使用了相同的方法,效果很好.
我试图将UITextFields添加到一些静态UITableViewCells的contentViews.如果我只是将它们直接添加到故事板中的单元格,我会在Xcode 5中收到以下几个警告:
Ambiguous Layout: Position is ambiguous for "Round Style Text Field".
如果我然后选择UITextField并在故事板中选择"添加缺失约束",则会收到此警告:
Misplaced View: Frame for "Round Style Text Field" will be different at run time.
另外,我尝试手动在UITextField和contentView之间添加约束(通过选择这两个视图并尝试添加约束),但似乎没有任何约束选项可用于该特定关系(复选框都是禁用)
以下是故事板的一些截图:


我遇到了问题,我在网上找不到其他人同样的斗争,也许这太傻了.
我有以下课程:
class UIXOColourPicker : UIView {
@IBInspectable var moodValue: Int!
...
}
Run Code Online (Sandbox Code Playgroud)
在我的故事板中,我有一个像这样的观点:

用户定义的运行时属性是由Xcode IBInspectable功能生成的(这真的很酷btw),但每当我尝试运行应用程序时,我都会收到错误
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIXOColourPicker 0x7fa86877c420> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key moodValue.'
我在Xcode 6 - Beta 6上.
有任何想法吗?
对不起,如果这是一个愚蠢的问题,但我已经在努力了2个小时,我没有任何其他Swift开发人员来看看它.
干杯
我正在开发一个全新的OS X应用程序,我采用了一些大胆的工作方式,使用了一些我之前没有用过的技术.(我是iOS开发人员.)
我在我的应用程序中使用Storyboards,Swift和Core Data,所有这些都来自Xcode模板.当我的应用程序启动时,它会从Storyboard创建一个NSWindowController.
在我用Objective-C制作的另一个OS X应用程序中,我使用委托方法applicationShouldHandleReopen:hasVisibleWindows:告诉窗口控制器调出窗口控制器的窗口.
我知道Swift中的语言语义保持不变,但Core Data和Storyboards给我留下了两个问题.
我的项目使用Core Data的事实是否将其更改为"基于文档的应用程序",从而改变了窗口的管理方式?
在我的旧项目中,我使用的是笔尖而不是故事板.似乎我手动实例化NSWindowController那里,并使用它来管理重新打开.如果有一种方法可以获得我的故事板无疑为我做的那个,那将是最佳的,对吧?只是将一个插座连接到我的应用程序代表的方式去?还有其他约定吗?
尝试从故事板自定义实例化窗口控制器时,我感觉像是一个错误。我正在使用NSStoryboard.instantiateController(identifier:creator:),这是 MacOS 10.15 的新功能。有问题的代码块是:
let mainWC = storyboard.instantiateController(identifier: "id") { aDecoder in
MainWindowController(coder: aDecoder)
}
Run Code Online (Sandbox Code Playgroud)
我基本上成功地使用了这个确切的代码来自定义实例化主视图控制器,并将该视图分配给一个新窗口和一个新窗口控制器。这很好用。我还可以以老式的方式实例化窗口控制器,而无需使用instantiateController(identifier:). 但是当我尝试上面的代码来自定义窗口控制器的实例化时,我最终遇到了以下错误:
断言失败
-[NSClassSwapper _createControllerForCreator:coder:]...自定义实例化控制器必须调用-[super initWithCoder:]
请注意,我的自定义视图控制器类(有效)和我的自定义窗口控制器类MainWindowController(无效)都实现了平凡的初始值设定项:
required init?(coder: NSCoder) {
super.init(coder: coder)
}
Run Code Online (Sandbox Code Playgroud)
我知道这个功能是 OS 10.15 的新功能,但文档说它应该适用于窗口控制器和视图控制器,并且错误消息对我没有任何意义。
macos nswindowcontroller xcode-storyboard swift macos-catalina
我在这里创建了一个演示项目.我有一个视图,我在.xib文件中创建了一个ScrollView.在界面构建器中,我没有设置任何约束.在我的viewDidLoad方法中,我使用SnapKit设置约束:
scrollView.snp_makeConstraints { (make) -> Void in
make.edges.equalTo(self.view)
}
Run Code Online (Sandbox Code Playgroud)
当我运行代码时,我得到以下控制台输出:
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the …Run Code Online (Sandbox Code Playgroud) interface-builder ios xcode-storyboard autolayout nslayoutconstraint
xcode-storyboard ×10
ios ×6
swift ×3
xcode ×3
autolayout ×2
macos ×2
storyboard ×2
font-size ×1
fonts ×1
ios5 ×1
ios6 ×1
iphone ×1
localization ×1
objective-c ×1
uistoryboard ×1
uitableview ×1
xcode5 ×1