Xcode 8: Outlet name changed by IB?
Xcode 8: Outlet name changed by IB?
- Subject: Xcode 8: Outlet name changed by IB?
- From: David Hoerl <email@hidden>
- Date: Mon, 19 Sep 2016 13:49:13 -0400
I have an iOS app using Swift 2.3. There was an outlet named something
(I forget), and I changed into:
@IBAction func EditingDidEnd(sender: UITextField)
When I connected 3 UITextFields to it in IB, I just looked at the first
part of the name - the "Editing..." and connected it. Ran the app:
Boom! Crash! Missing method.
It took a while to realize that IB had offered up
"EditingDidEndWithSender:" as the Action I could connect to. So I
disconnected everything and tried again. Same issue.
In the end, I had to rename the action method as:
@IBAction func EditingDidEndWithSender(sender: UITextField)
No change to IB. Now my app works.
Can anyone explain this (new with XC8) behaviour?
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden