0
votes

I know that "required init?(coder aDecoder: NSCoder)" is used when deserializing my object(which is created on storyboard), but is it correct to initialize IBOutlets in it? If not, where should do IBOutlets initialization?

Thank you in advance

1
Read awakeFromNibAsperi

1 Answers

0
votes

but is it correct to initialize IBOutlets in it

No. IBOutlets are declared Optional so they already have a value, nil, and do not need to be initialized in your initializer. The outlets will be hooked up later in the nib-loading process, automatically.