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:
The problem is, I don't know how to set that name, so I can manage it in the coffeescript. How to do this?
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.
You have set the name for view controller in Interface Builder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With