Long subtitle message
isayeter opened this issue · comments
Hello, thanks for this amazing class.
When I want to show a very long subtitle message, it looks like this:
as you see, it is impossinle to read that.
When I added
self.subTitleLabel.numberOfLines = 3;
before this line : https://github.com/atljeremy/JFMinimalNotifications/blob/master/JFMinimalNotification/JFMinimalNotification.m#L457
it becomes this:
If you say this is ok, please update your wonderful code.
Thanks.
Do we have any update on this issue? It would be great to have this fix in the Pod, to support long subtitles messages. Thanks!
EDIT
Actually, it can be done directly in your own code.
Let's say you instanciate a JFMinimalNotification
this way :
self.minimalNotification = [JFMinimalNotification
notificationWithStyle:JFMinimalNotificationStyleDefault
title:@"This is my awesome title"
subTitle:@"This is my awesome sub-title" dismissalDelay:5.0 touchHandler:^{
[self.minimalNotification dismiss];
}];
You can modify the number of lines like this, right after the instanciation :
self.minimalNotification.subTitleLabel.numberOfLines = 3;