From 131eb2b057a3a99fbd90dcf8d356a8bb168ceb3f Mon Sep 17 00:00:00 2001 From: lunarbase Date: Fri, 1 May 2015 12:30:12 +0100 Subject: [PATCH] updating it to iOS 7+ --- MPNotificationView/MPNotificationView.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MPNotificationView/MPNotificationView.m b/MPNotificationView/MPNotificationView.m index 6c94889..5e17139 100644 --- a/MPNotificationView/MPNotificationView.m +++ b/MPNotificationView/MPNotificationView.m @@ -222,8 +222,8 @@ - (id) initWithFrame:(CGRect)frame _textLabel = [[UILabel alloc] initWithFrame:textFrame]; _textLabel.font = textFont; _textLabel.numberOfLines = 1; - _textLabel.textAlignment = UITextAlignmentLeft; - _textLabel.lineBreakMode = UILineBreakModeTailTruncation; + _textLabel.textAlignment = NSTextAlignmentLeft; + _textLabel.lineBreakMode = NSLineBreakByTruncatingTail; _textLabel.backgroundColor = [UIColor clearColor]; [_contentView addSubview:_textLabel]; @@ -236,8 +236,8 @@ - (id) initWithFrame:(CGRect)frame _detailTextLabel = [[UILabel alloc] initWithFrame:detailFrame]; _detailTextLabel.font = detailFont; _detailTextLabel.numberOfLines = 1; - _detailTextLabel.textAlignment = UITextAlignmentLeft; - _detailTextLabel.lineBreakMode = UILineBreakModeTailTruncation; + _detailTextLabel.textAlignment = NSTextAlignmentLeft; + _detailTextLabel.lineBreakMode = NSLineBreakByTruncatingTail; _detailTextLabel.backgroundColor = [UIColor clearColor]; [_contentView addSubview:_detailTextLabel];