Changed from UITextAlignmentCenter to NSTextAlignmntCenter.
Using conditional compilation to prevent warnings.