1

I have recently began working on app development more specifically games. I am using Xcode 7 beta 3 default iPhone 6 simulator. In my game I have a screen to enter the user's name setting up an action through interface builder 'primaryActionTriggered' in which I would update the high score file and dismiss the view. It all worked perfectly in the simulator but when I put it on my iPhone 6 iOS 8.0.1 the action did not trigger. Has something changed in iOS 9 to change the way 'UITextField' works, and can you please provide a working example which I could see. The simulator was running iOS 9

1 Answers1

1

You have already explained the reason for the problem perfectly! The whole concept of a "primary action" is new in iOS 9. You cannot use it in an earlier system.

So, if you need compatibility with iOS 8, just pretend that the "primary action" trigger doesn't exist; hook your text field up with some other control event (such as Editing Changed).

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • I have tried using editing ended but I see no way to actually close the keyboard, so could you please explain to me what action I should use which activates when pressing the return key on the keyboard and how to modify it – Sasha Kiselev Aug 02 '15 at 04:41
  • I have made it work with editing did end. Thank you so much for your help – Sasha Kiselev Aug 02 '15 at 06:16