Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode storyboard delegate datasource scenes

After updating Xcode 7, some of my viewcontrollers' names changed to Delegate Scene, what to do about this? Thanks! enter image description here

Changing the title doesn't help enter image description here

like image 847
Ted Avatar asked Sep 17 '15 05:09

Ted


3 Answers

Try renaming the controller to whatever you want it to be:

Step 1 Select the "controller", named "Delegate" in your screenshot.

enter image description here

Step 2 Click again on "Delegate", or press [Enter] to enter renaming mode.

enter image description here

Step 3 Rename it to something meaningful.

enter image description here

Step 4 Deselect or press [Enter] again to save the changes. The scene name will be updated to match the name you specified.

enter image description here

like image 79
Steve Wilford Avatar answered Sep 30 '22 06:09

Steve Wilford


Select View Controller -> Identity Inspector -> Document Label and rename it here.

Identity Inspector - Document Label

This worked for me.

like image 23
Vinoth Vino Avatar answered Sep 30 '22 04:09

Vinoth Vino


Adding to @Steve Wilford Reply:

In Xcode 7's story board, there is limitation on length of name of view controller to be shown in left pane which is 15 characters. All the names having greater than 15 characters, will be changed to strange name say 'Delegate Scene' or 'Data Source Scene'.

like image 29
bunty Avatar answered Sep 30 '22 05:09

bunty