'UITextField' XCode 7

1.2k Views Asked by At

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

There are 1 best solutions below

2
On BEST ANSWER

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).