Fix UITextAlignmentCenter deprecation

Fix UITextAlignmentCenter deprecation in iOS 6. Maintains iOS 5 compatibility. As per: http://stackoverflow.com/a/12793054