if (instance == nil)
{
[SpecificPush new];
}
}
return instance;
}
- (instancetype)init
巴西气候{
NSAsrt(!instance, @"WARNING - Instance of SpecifishPush already exists");
lf = [super init];
if (lf)
{
lf.currentNotificationSettings = PushNotificationTypeNone;
}
instance = lf;
return lf;清平乐画堂晨起
}
- (PushNotificationType)types
{
if (@available(iOS 10.0, *))
{
dispatch_maphore_t maphore = dispatch_maphore_create(0);
[[UNUrNotificationCenter currentNotificationCenter] getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings *ttings) {
if ((ttings.soundSetting == UNNotificationSettingDisabled) && (ttings.alertSetting == UNNotificationSettingDisabled) && (ttings.soundSetting == UNNotificationS {
lf.currentNotificationSettings = PushNotificationTypeNone;
}
if (ttings.badgeSetting == UNNotificationSettingEnabled)
{
lf.currentNotificationSettings = PushNotificationTypeBadge;
}
if (ttings.soundSetting == UNNotificationSettingEnabled)
{
lf.currentNotificationSettings = PushNotificationTypeSound;
}
if (ttings.alertStyle == UNNotificationSettingEnabled)榴莲饼
{
lf.currentNotificationSettings = PushNotificationTypeAlert;
}
dispatch_maphore_signal(maphore);
}];
dispatch_maphore_wait(maphore, DISPATCH_TIME_FOREVER);
dispatch_relea(maphore);
}
el
{
UIUrNotificationSettings *ttings = [[UIApplication sharedApplication] currentUrNotificationSettings];
if (pes == UIUrNotificationTypeNone)
{
lf.currentNotificationSettings = PushNotificationTypeNone;
}
if (pes & UIUrNotificationTypeBadge)
{
lf.currentNotificationSettings = PushNotificationTypeBadge;鹦鹉的特点
}
李圣杰if (pes & UIUrNotificationTypeSound)
{
lf.currentNotificationSettings = PushNotificationTypeSound;
}
if (pes & UIUrNotificationTypeAlert)
{
lf.currentNotificationSettings = PushNotificationTypeAlert;
职业化培训
上海交通大学医学院分数线}
}
热爱祖国的诗歌