开发者

Changing text on back button in dashcode. Where do I put this code?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜