Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我正在使用 UILocalNotification ,它工作正常。但我需要警报中的“稍后”按钮而不是“取消”。当用户单击“稍后”按钮时,我想在某个时间后显示通知。那可能吗?
谢谢
不,你走错路了。由于iphoneSDK的限制,这样的事情是不可能的。在本地通知中,它只会在警报视图中显示两个按钮。
1)Cancel 2)View
您仍然可以将 View 按钮重命名为您希望的名称:
localNotif.alertAction = @"Snooze";
而不是重命名取消按钮。