Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Default value of BOOL type to YES

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.

like image 894
Gobi M Avatar asked Dec 27 '22 03:12

Gobi M


1 Answers

-(id)init{
    if ((self = [super init]))
    {
       //This is where you are supposed to initialise anythin you need

       xyz = YES;
    }
    return self;
}
like image 197
Lithu T.V Avatar answered Dec 28 '22 16:12

Lithu T.V