In meinem UIActivityViewController verwende ich den Beendigungshandler, um eine "erfolgreich freigegebene" Benachrichtigung auszuführen. Es funktioniert, aber mein einziges Problem ist, es zeigt immer noch die Benachrichtigung, wenn der Benutzer auf Abbrechen drückt.UIActivityViewController-Vervollständigungshandler ruft weiterhin Aktion auf, wenn Benutzer Abbrechen drückt
Hier ist mein Abschluss-Handler-Code,
[controller setCompletionHandler:^(NSString *activityType, BOOL completed) {
CWStatusBarNotification *notification = [CWStatusBarNotification new];
[notification displayNotificationWithMessage:@"✓ Successfully Shared Centre!"
forDuration:3.0f];
notification.notificationLabelBackgroundColor = [UIColor colorWithRed:38.0f/255.0f green:81.0f/255.0f blue:123.0f/255.0f alpha:1.0f];
notification.notificationLabelTextColor = [UIColor whiteColor];
}];
Danke für die Hilfe!
Vorschlag: Keine Meldung "Erfolgreich geteilt" anzeigen. Es ist wahrscheinlich nervig. – Daniel
Mein Designer will es, ich stimme nicht zu, aber er ist der Kopf:/ –