Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long subtitle message #37

Open
isayeter opened this issue Jan 10, 2017 · 1 comment
Open

Long subtitle message #37

isayeter opened this issue Jan 10, 2017 · 1 comment

Comments

@isayeter
Copy link

isayeter commented Jan 10, 2017

Hello, thanks for this amazing class.

When I want to show a very long subtitle message, it looks like this:

aaa

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:

bbb

If you say this is ok, please update your wonderful code.

Thanks.

@TiLodoss
Copy link

TiLodoss commented Aug 9, 2018

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants