Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set scene name on xcode's storyboard

I am using the CoreDataBooks sample project from Apple to use with the Zucchini automated test framework. I need the view name to use in the coffeescript to manage it like this:

class BooksScreen extends Screen anchor: -> $("navigationBar[name=Authors]")

In this example, the Authors is used to identify the view. I figured in xcode that we have this name after view controller class of each scene, like the New Book scene:

enter image description here

The problem is, I don't know how to set that name, so I can manage it in the coffeescript. How to do this?

like image 977
André Muniz Avatar asked Aug 06 '14 15:08

André Muniz


People also ask

How do I rename a scene in Xcode?

Select the navigation item for the scene you want to rename in the Object Browser on the left, then go to the Attributes inspector on the right and change the Title to the name you want. It will automatically rename the navigation item and the scene.


1 Answers

You have set the name for view controller in Interface Builder.

  1. Select view controller
  2. Now from menu View->Utilities->Show attributes inspectors
  3. Set view controller title.
like image 146
vignesh Avatar answered Sep 17 '22 15:09

vignesh