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];