本文实例为大家分享了iOS本地推送的具体代码,供大家参考,具体内容如下 首先创建全局的本地通知对象及弹出框 // 弹出本地消息 @property(nonatomic,strong)UILocalNotification *localNotification; @property(nonatomic,strong)UIAlertController *alertcontrol; 其次在代码中实现如下: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)u