KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 ?
Tags (comma-separated)
Save Edits
Cancel