问题描述:

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.

相关阅读:
Top