From Initializing, the default value of BOOL
type is NO
, Is it possible to change the value toYES
when it is synthesized.
Such that its value assigned alternatively by next time.
-(id)init{
if ((self = [super init]))
{
//This is where you are supposed to initialise anythin you need
xyz = YES;
}
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