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:
.
Asked
Active
Viewed 813 times
0

Morrowless
- 6,856
- 11
- 51
- 81
-
do some research before posting questions, please – Gabriele Petronella Aug 27 '13 at 08:55
1 Answers
0
Yes you can use -initWithNibName:
to load a nib file for the view.
You need to follow these steps:
- First you define the class for the view Controller created .
- Then delete the view attribute from that controller in the storyboard
- 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