My current storyboard layout
UIViewController
|
+- UIView (MyView)
in MyView I have the following functions built out
- init
- initWithFrame
- initWithCoder
- awakeFromNib
- awakeAfterUsingCoder
Out of those five, only two actually run
- awakeFromNib
- awakeAfterUsingCoder
I’ve scoured for a while and I can’t figure out why the init functions aren’t working.
Per my comment up top:
@MichaelDautermann it was something simple. This is two days in a row now. I had –
(id)initWithCoder:(NSCoder *)aDecoder:(CGRect)frame. Why is that it takes me so long to see these n00b mistakes? I don’t know. In my defense, Xcode didn’t give me any build errors.Incorrect code I had:
Correct code: