[英]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 this code to change the text of the back button. 这可能是一个非常简单的问题,但我正在使用dashcode并且无法确定将此代码放在何处以更改后退按钮的文本。
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). Dashcode是Apple为基于Web的开发(Javascript / HTML / CSS)提供的开发工具。
The code you have pasted is Objective-C code which is used in native development with XCode. 您粘贴的代码是Objective-C代码,它在XCode的本机开发中使用。
So, either you have the wrong tool, or are using the wrong language. 所以,要么你有错误的工具,要么使用错误的语言。 HTH.
HTH。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.