Search code examples
iosxcodecoffeescriptzucchini

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?


Solution

  • 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.