gpambrozio / BlockAlertsAnd-ActionSheets

Beautifully done UIAlertView and UIActionSheet replacements inspired by TweetBot
http://codecropper.com/2012/01/replicating-tweetbots-alerts-and-action-sheets/
MIT License
1.41k stars 268 forks source link

Changing message text alignment? #49

Open ScottEAdams opened 11 years ago

ScottEAdams commented 11 years ago

Great work!

One small thing I can't seem to figure out is how to change the message alignment from NSTextAlignmentCenter to NSTextAlignmentJustified. Possible?

barrettj commented 11 years ago

Unfortunately there is no easy way to do this as UILabel doesn't support NSTextAlignmentJustified.

The path ahead would be to accept Attributed Strings (which do) and to set the attributedString property of the UILabel, but this would only work for iOS 6 as that's when the attributedString property was added.