After updating Xcode 7, some of my viewcontrollers' names changed to Delegate Scene, what to do about this? Thanks!
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- didBeginContact:(SKPhysicsContact *)contact not in
Select
View Controller
->Identity Inspector
->Document Label
and rename it here.This worked for me.
Here is a project where you can clearly see that this is a Interface Builder bug. I have reported it but no responce. Id is 22972580.
DelegateBug.zip
Check the title property of your View Controller, the name of the view controller comes from either the title property or the Class.(Title taking precedence)
Screenshot
Also you can rename the controller manually if you want as suggested by Steve
I dont have a direct answer, but a place to look. Unfortunately it exceed the space for comment, so I have to put it here. Sorry.
If you select the storyboard in the project explorer, you can open its sourcecode. Storyboards are just XML files. How does the viewcontroller look like? Compare it to a reference,eg a freshly created one. Perhaps you can share the xml part of the viewcontroller? Example with one (out of the box) view controller:
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'.
Try renaming the controller to whatever you want it to be:
Step 1 Select the "controller", named "Delegate" in your screenshot.
Step 2 Click again on "Delegate", or press [Enter] to enter renaming mode.
Step 3 Rename it to something meaningful.
Step 4 Deselect or press [Enter] again to save the changes. The scene name will be updated to match the name you specified.