> On 28 Jun 2017, at 14:37, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> On Jun 28, 2017, at 00:21 , Gerriet M. Denkmann <gerri...@icloud.com> wrote:
>> 
>> Ok, so I removed my TableView from the scene and tried to drag a 
>> UITableViewController into its place.
>> But Xcode would not allow this.
>> 
>> So: must a UITableViewController the only (or the top) thing in a scene?
>> Or am I just doing something wrong?
> 
> The trick is to use a container view. This is an item in IB’s object palette. 
> Drag the container view into the place where the table view was, then drag a 
> table view controller onto the storyboard, then control drag from the 
> container view to the table view controller to create the embedding segue. 
> That should be all it takes.

I did just that.

I have a Master View Controller Scene with a MasterViewController ← 
UIViewController (which previously had a TableView, now has a UIView, called 
“Container View” ); it now also has:
containerView → Container View, and:
Show segue to “Table View Controller”

And a new: Table View Controller Scene
This has: Presenting Segues: Show → Container View viewDidLoad:

Looks good, but crashes: 
*** Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: 
‘[<UIStoryboardShowSegueTemplate 0x60…> setValue:forUndefinedKey:]: this class 
is not key value coding-compliant for the key containerView.'

What does this mean? 
Probably that some class needs an IBOutlet UIView * containerView.
But which class? UIStoryboardShowSegueTemplate?

I am rather confused and don’t know what to try next.


Kind regards,

Gerriet.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to