0
我正在使用UrbanAhiphip的PushNotification工作。在这我得到的通知,但我的页码不显示。我尝试下面的代码UAPush共享无法识别ios中的UrbanAhiphip
[[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
UALOG(@"APN device token: %@", deviceToken);
// Updates the device token and registers the token with UA
[[UAPush shared] registerDeviceToken:deviceToken];
}
但是对我来说在“[UAPush共享]”“共享”越来越错误,如“为选择没有已知的类方法‘共享’“
我已导入类
#import "UAirship.h"
#import "UAPush.h"
即使我得到很多错误。
任何人都可以帮助我什么是我在这做的错误。 在此先感谢。