I have the following code snippet I run on an iPad or iPhone. (Also, if I use StoryBoard to layout the TextField, I get the similar errors):
class FlightPlann