Are you sure you have the capitals right...? In Objective C you would usually use BOOL with the values YES and NO representing 1 and 0, or true and false - see here:
I don't know much about this, but the most common confusion over Booleans in Objective C seems to be that BOOL is implemented as a "signed char" data type (meaning that it can take other values apart from 1 and 0) unlike "_Bool" which can only store 1 or 0.
Comments
Bool mysecondflag=1;
in these case explain & i also need full discription about this.
Thank you
http://blog.bignerdranch.com/564-bools-sharp-corners
I don't know much about this, but the most common confusion over Booleans in Objective C seems to be that BOOL is implemented as a "signed char" data type (meaning that it can take other values apart from 1 and 0) unlike "_Bool" which can only store 1 or 0.
http://stackoverflow.com/questions/8724349/difference-between-bool-and-bool-types-in-c
http://stackoverflow.com/questions/541289/objective-c-bool-vs-bool
And google is my friend.