Fix TextAlignmentCenter deprecated warning

UITextAlignmentCenter was deprecated in iOS 6.0.  This change updates the code to use NSTextAlignmentCenter when iOS 6.0 is targeted.