Adding Menus and Shortcuts to the Menu Bar and User Interface - Split-screen Issues

Number:rdar://FB7719318 Date Originated:30/5/20
Status:Open Resolved:No
Product:Code samples Product Version:12 Feb 2020
Classification:Crash Reproducible:Always
Basic information
Please provide a descriptive title for your feedback:
Adding Menus and Shortcuts to the Menu Bar and User Interface - Split-screen Issues
Which area are you seeing an issue with?
Sample Code
What type of feedback are you reporting?
Incorrect/Unexpected Behavior
Please describe the issue:
Couple of issues when using split-screen in the sample "Adding Menus and Shortcuts to the Menu Bar and User Interface" downloadable at:
Date of files inside zip: 12 Feb 2020

I've also attached the zip containing the sample.

Can the sample be improved to use proper practices so it works with split-screen?
Please list the steps you took to reproduce the issue:
Issue 1 - A crash when adding a row:
Open project
Select simulator iPad Pro (11inch) (2nd gen)
Launch app
Drag up from bottom of screen to show dock
Drag messages on to right side of screen so you have split view with this sample app on the left and Messages on the right (not floating).
Tap plus button

Issue 2 - Selection not working
Drag the split divider to the right so Messages dissapears and the sample app is now fullscreen.
Add some rows.
Drag up from bottom and drag messages into right side split screen.
Select a row.
What did you expect to happen?
Issue 1
New row should appear in table.

Detail view should be pushed on navigation controller.
What actually happened?
Issue 1
App crashes
2020-05-30 16:29:03.358460+0100 Menus[36458:2521286] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'

Issue 2
The detail screen is not pushed on the table row just stays selected (Screenshot attached)


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!