【发布时间】:2016-06-21 10:30:04
【问题描述】:
我是 iOS 应用程序开发的新手...
我有一个 View on which push logo Area 。
我也有一个PushNotificationAlertView 在我看来。
现在我的问题是,当我的PushNotificationAlertView 出现时,我可以像关注突出显示推送徽标区域一样吗?
警报来自UIUserNotificationSettings
在 AppDelegate.m
UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
我收到如下图所示的警报
但是我想要喜欢下面的图片请帮帮我
我该怎么做? 请帮助我。:)
【问题讨论】:
-
你想要什么?您刚刚为标签 Push Logo 设置了背景?
-
@rohitSidpara 谢谢我希望在警报视图中突出显示特定区域视图
-
您可以使用自定义 uialertview 或 toast 标签来实现此目的。
-
警报来自 UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings]; [[UIApplication sharedApplication] registerForRemoteNotifications];
-
我们如何自定义警报
标签: ios objective-c push-notification notifications uialertview