• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode 8: Outlet name changed by IB?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Xcode 8: Outlet name changed by IB?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Xcode 7 and 8 on the same Mac. Missing Simulators in Xcode 7
  • Next by Date: Re: Xcode 8: Outlet name changed by IB?
  • Previous by thread: Re: Xcode 7 and 8 on the same Mac. Missing Simulators in Xcode 7
  • Next by thread: Re: Xcode 8: Outlet name changed by IB?
  • Index(es):
    • Date
    • Thread