开发者

How to add buttons to CFUserNotificationDisplayAlert and control them?

How will I add buttons and control them? I want to be able to put my own code in each button, and control them like how a UIAlertView would be controlled. My notification code looks like this :

CFOptionFlags responseFlags = 1;
            CFUserNotificationDisplayAlert(9.0, responseFlags, NULL, NULL, NULL, 
                                           CFSTR("An application has crashed!"), CFSTR("Upload core dumps to STAMP server?"), NULL, 
                                           CFSTR("Relaunch App"), CFSTR("Upload"), &responseFlags);

Basically, I want to be able to launch the application after it has crashed, when the user clicks the "Relaunch App" button. Any help i开发者_StackOverflow社区s much appreciated!

Important Note: My phone is jailbroken and I don't plan on putting this app on the App Store. Please advise me accordingly :)


Are you referring to Push Notifications?

If so, this is not possible without being jailbroken and hooking SpringBoard.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜