TSMessages icon indicating copy to clipboard operation
TSMessages copied to clipboard

TSMessage appears below navigationBar - looks awkward

Open idokleinman opened this issue 10 years ago • 1 comments

I tried displaying a notification above the navigation bar (in a modal view embdedded in uinavigationviewcontroller). used: TSMessage.setDefaultViewController(self.navigationController)

that doesn't help, notification appears below the bar instead above it. is that a bug?

idokleinman avatar Jun 02 '15 03:06 idokleinman

did you set atPosition:TSMessageNotificationPositionNavBarOverlay?

it worked for me with that.. [TSMessage showNotificationInViewController:self.messagesViewController.navigationController title:localNotificationTitle subtitle:localNotificationText image:localNotificationImage type:TSMessageNotificationTypeMessage duration:TSMessageNotificationDurationAutomatic callback:nil buttonTitle:nil buttonCallback:^{ NSLog(@"User tapped the button"); } atPosition:TSMessageNotificationPositionNavBarOverlay canBeDismissedByUser:YES];

argoel avatar Jul 17 '15 09:07 argoel