Changed to NSTextAlignment and NSLineBreakMode for iOS 7.