Warning on iOS 6 or above

I added a conditional compilation to use the UITextAlignmentCenter on iOS < 6 and NSTextAlignmentCenter on iOS >= 6.