Everytime when I tried to convert BOOL value into int. INT value is showing -8 for True and 0 for False. Ideally it should return 1 for true.
I have tried all possible ways of conversion like
int val=Info.isattachementDownloadable;
int val=[[NSString stringWithFormat:@"%d", Info.isattachementDownloadable] intValue];
int val=(int)Info.isattachementDownloadable;
where Info.isattachementDownloadable return BOOL
In all ways its showing -8 for TRUE.
Any suggestion ?
Maybe that will help(thought i don’t know why it may be needed in the first place)
Hope that it helps you.