This is probably a very simple question, but I'm working with dashcode and can't figure out where to put t开发者_开发问答his code to change the text of the back button.
self.navigationItem.backBarButtonItem =
[[[UIBarButtonItem alloc] initWithTitle:@"Back"
style: UIBarButtonItemStyleBordered
target:nil
action:nil] autorelease];
Dashcode is the development tool that Apple has provided for web based development (Javascript/HTML/CSS).
The code you have pasted is Objective-C code which is used in native development with XCode.
So, either you have the wrong tool, or are using the wrong language. HTH.
精彩评论