I have a UITextField object with the text property set to \"hi\". However these two lines have no affect on where \"hi\" is located
myUITextObject.contentVe
You would want to write it like this:
myUITextObject.textAlignment = .center
(Edited to change from .Center to .center)