0

Is there a way to use init methods other than -initWithCoder: for Storyboard view controllers? I already know that you can set properties on VCs inside -prepareForSegue:.

Morrowless
  • 6,856
  • 11
  • 51
  • 81

1 Answers1

0

Yes you can use -initWithNibName: to load a nib file for the view. You need to follow these steps:

  1. First you define the class for the view Controller created .
  2. Then delete the view attribute from that controller in the storyboard
  3. Then you can use nib file to initialize the class .
Gabriele Petronella
  • 106,943
  • 21
  • 217
  • 235
Wizkid1490
  • 76
  • 3
  • I'm afraid this doesn't not provide a solution for the OP issue, as he explicitly mentioned *for Storyboard view controllers*, anyway he'll be the judge of it. – Gabriele Petronella Aug 27 '13 at 11:41