7

Using xcode 8 beta 6.

Type override func prepare and I see this ..

enter image description here

But I am looking for

enter image description here

prepare(for segue: UIStoryboardSegue, sender: AnyObject?)

Is this a bug? This class is a subclass of ViewController?

user3069232
  • 8,587
  • 7
  • 46
  • 87

1 Answers1

12

Maybe this was a bug in Beta 6. I'm using the GM seed, and it is working:

prepareforsegue

BTW: In beta 6, the method was renamed to

prepare(for segue: UIStoryboardSegue, sender: Any?)
FelixSFD
  • 6,052
  • 10
  • 43
  • 117