0

我是新來的iOS應用程序開發...如何在視圖上顯示推送通知AlertView時突出顯示特定區域?

我有一個視圖上推商標區。 另外我有一個PushNotificationAlertView在我看來。

現在我的問題是,當我的PushNotificationAlertView出現時,我能否像下面的突出顯示推圖標區域那樣做。

警報從UIUserNotificationSettings
AppDelegate.m

UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil]; 
    [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings]; 
    [[UIApplication sharedApplication] registerForRemoteNotifications]; 

我收到警報像下面的圖片

enter image description here

我要像進來以下是圖像請幫我

enter image description here

我怎樣才能做到這一點? 請幫我。:)

+0

你想要什麼?您只需將背景設置爲您的標籤Push Logo? –

+0

@rohitSidpara謝謝,我希望在警報視圖中突出顯示的特定區域視圖 –

+0

您想要突出顯示推動徽標區域? – Santo

回答

1

使用自定義視圖或標籤使其突出顯示。

使用以下代碼通知您的視圖控制器。

Use Notifier

在添加您的片段下方的功能從鏈接

if ([[notification name] isEqualToString:@"TestNotification"]) { 
//highlight the view or label by changing color or text or what you want 
} 
+0

上面的方法都不叫.. –

+0

你做了什麼?哪些方法沒有調用? – Santo