开发者

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

开发者 https://www.devze.com 2023-03-23 20:32 出处:网络
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.

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

精彩评论

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