Fixed UITextAlignmentCenter deprecated warning for iOS 6

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