Changed UITextAlignmetCenter into NSTextAlignmentCenter. UITextAlignmetCenter is deprecated in iOS 6