ok, i have some code that is being executed even though i have commented it
Heres the code, like normal:
Code:
NSString *path = [[NSBundle mainBundle] pathForResource:@"alarm" ofType:@"mp3"];
if ([clockLabel.text isEqualToString:@"12:00:01 PM"]) {
AVAudioPlayer* theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
theAudio.delegate = self;
[theAudio play];
}
But when i comment it so it looks like this:
Code:
/*NSString *path = [[NSBundle mainBundle] pathForResource:@"alarm" ofType:@"mp3"];
if ([clockLabel.text isEqualToString:@"12:00:01 PM"]) {
AVAudioPlayer* theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL];
theAudio.delegate = self;
[theAudio play];
}*/
Why is it still being executed!!!
Please Help