开发者

'NavController)' has its 'NIB Name' property set to 'VerwaltungsTableView.nib',... manner

开发者 https://www.devze.com 2023-02-11 17:31 出处:网络
I want to build an Application with UITables and a DetailView. But I got now a warning called: \'Selected Verwaltung Nav Controller (Verwaltung)\' has its \'NIB Name\' property set to \'VerwaltungsT

I want to build an Application with UITables and a DetailView. But I got now a warning called:

'Selected Verwaltung Nav Controller (Verwaltung)' has its 'NIB Name' property set to 'VerwaltungsTableView.nib', but this view controller is not intended to 开发者_如何学编程have its view set in this manner.

But I think I have the Objects in the right manner. Here and here you can see the errors and the InterfaceBuilder.

What causes this warning?


Navigation controllers are meant to organise other view controllers. You aren't supposed to lay them out yourself. You're supposed to create other view controllers, assign one of them as the navigation controller's root view controller, then write code to let the user navigate to the other view controllers from there.

If you're trying to get the table view controller nib to show up, then you should probably be assigning the table view controller to the navigation controller's rootViewController property.

0

精彩评论

暂无评论...
验证码 换一张
取 消