Is it possible to generate custom init method automatically from Xcode, as Android Studio does for android? I mean, if I declare some properties in .h, for example: int a; int b;
So, I would like to create automatically a init method as:
- (id)initWithA:(int) aInner andB:(int) bInner
{
a = aInner;
b = bInner;
}
New Xcode (after Xcode 10) support this issue for class (not for struct).
Steps:
As for struct. You can make it class first, and change it back to struct after you get auto-gen init.
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