美文网首页
iOS推送跳转不同的指定页面

iOS推送跳转不同的指定页面

作者: May_d8f1 | 来源:发表于2017-09-13 20:44 被阅读0次

在接受推送信息之中获取要跳转页面的字符串,再将字符串转化为对象,进行该页面的跳转

Class c =NSClassFromString(className);

#if __has_feature(objc_arc)

controller = [[calloc]init];

#else

controller = [[[c alloc] init] autorelease];

#endif

相关文章

网友评论

      本文标题:iOS推送跳转不同的指定页面

      本文链接:https://www.haomeiwen.com/subject/srblsxtx.html