My current storyboard layout
UIViewController
|
+- UIView (MyView)
in MyView I have the following functions built out
Out of those five, only two actually run
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:
- (id)initWithCoder:(NSCoder *)aDecoder:(CGRect)frame {
if(self = [super initWithCoder:aDecoder]) {
//
}
return self;
}
Correct code:
- (id)initWithCoder:(NSCoder *)aDecoder {
if(self = [super initWithCoder:aDecoder]) {
//
}
return self;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With