您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

ios推送服务,php服务端

2024/4/27 0:40:43发布6次查看
nsstring* nsalert = [[userinfo objectforkey:@aps] objectforkey:@alert]; if(nsalert [nsalert length] 0) { uialertview *palert = [[uialertview alloc] initwithtitle:@消息提示 message:nsalert delegate:self cancelbuttontitle:@详细 otherbuttonti
nsstring* nsalert = [[userinfo objectforkey:@aps] objectforkey:@alert];
if(nsalert && [nsalert length] > 0)
{
        uialertview *palert = [[uialertview alloc] initwithtitle:@消息提示
                                                         message:nsalert
                                                        delegate:self
                                               cancelbuttontitle:@详细
                                               otherbuttontitles:@关闭, nil];
        [palert show];
        [palert release];
}
cfshow([userinfo description]);
//接收到push  打开程序以后设置badge的值
nsstring *badgestr = [[userinfo objectforkey:@aps] objectforkey:@badge];
if (badgestr != nil)
[uiapplication sharedapplication].applicationiconbadgenumber = [badgestr intvalue];
//接收到push  打开程序以后会震动
audioservicesplaysystemsound(ksystemsoundid_vibrate);
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录