UITextField set to horizontal center alignment. Entering edit would move the text to the left. However, the text does not return to center after editing. In "Did End On Exit" handler, textAlignment was indeed set to NSTextAlignment. Calling setTextAlignment to NSTextAlignmentCenter again in "Did End On Exit" event handler did not move the text to center. calling setNeedsDisplay,setNeedLayout etc didn't make any difference.
Happened in Simulator and on real iPad 2 Air.
XCode V7.3.1
IOS 9.0
Any help would be appreciated.