I'm using a variable "volume"
@property BOOL * volume;
to set Volume On (YES) or Off (NO)
- (IBAction)manageVolume:(UIButton *)sender {
if (_volume == TRUE) {
_volume = !_volume;
// code...
} else {
_volume = !_volume;
// code...
}
}
It Works but it return three alerts:
if (_volume == TRUE) {
returnsComparison between pointer and integer ('BOOL *' (aka 'signed char *') and 'int')
_volume = !_volume;
returnsIncompatible integer to pointer conversion assigning to 'BOOL *' (aka 'signed char *') from 'int'
How can I solve? Thank you!