When compiling my application for iOS6, I get the following failure message:
From iOS 6 and later, the UITextAlignmentCenter is deprecated. Use NSTextAlignmentCenter instead.
A simple fix, I thought, but it seems that NSTextAlignment is available in iOS 6.0 and later, and I also still want to support iOS 5. What is the best solution to this problem?
Should I check which iOS user is running and then use NSTextAlignment or UITextAlignment based on this?
masam source share