<分区>
标签 iphone objective-c ios xcode sdk
<分区>
本地通知有 2 个选项 1.oK 和第二个本地通知操作 View 或任何其他...我们可以更改“确定”按钮文本并对其执行一些操作吗?
最佳答案
实际上,doc说,
The message consists of the application name, a short message, and (in this case) two buttons: Close and View. The button on the right is called the action button and its default title is “View”. An application can customize the title of the action button and can internationalize the button title and the message so that they are in the user’s preferred language.
您不能更改“关闭”按钮的文本。如果要更改右键的文本,请使用以下命令,
localNotif.alertAction = @"Show Me"; // Or something else
关于iphone - 本地通知有 2 个选项 1.oK 和第二个本地通知操作 View 或其他任何内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6409917/