Seems like UITextAlignmentCenter is deprecated in iOS 6.
I still use it and works well, but it gives a warning.
How can I fix this?
<
NSTextAlignmentCenter can be used in place of UITextAlignmentCenter and a list of other replacements is below:
#ifdef __IPHONE_6_0 // iOS6 and later
# define UITextAlignmentCenter NSTextAlignmentCenter
# define UITextAlignmentLeft NSTextAlignmentLeft
# define UITextAlignmentRight NSTextAlignmentRight
# define UILineBreakModeTailTruncation NSLineBreakByTruncatingTail
# define UILineBreakModeMiddleTruncation NSLineBreakByTruncatingMiddle
#endif