Created
May 28, 2014 17:09
-
-
Save fastred/4fd2b6b98d5d2685bf88 to your computer and use it in GitHub Desktop.
Centering title label in AHKActionSheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableParagraphStyle *paragraph = [[NSParagraphStyle defaultParagraphStyle] mutableCopy]; | |
paragraph.alignment = NSTextAlignmentCenter; | |
actionSheet.titleTextAttributes = @{ NSParagraphStyleAttributeName : [paragraph copy], | |
NSFontAttributeName : [UIFont systemFontOfSize:14.0f], | |
NSForegroundColorAttributeName : [UIColor grayColor] }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment