title: if statement not working
body: <p>I have an app where there is a timer. It goes from 10 to 0. Using NSTimer. I have said:
  .m:</p>
  
  <pre><code>//
  //  Skin.m
  //  PopThatPimple
  //
  //  Created by Rohan Kapur on 6/2/11.
  //  Copyright 2011 UWCSEA. All rights reserved.
  //
  
  #import "Skin.h"
  
  
  @implementation Skin
  @synthesize theAudio;
  @synthesize label;
  
  
  -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
      UITouch *myTouch = [touches anyObject];
  
      CGPoint point = [myTouch locationInView:pimple];
      if ( CGRectContainsPoint(pimple.bounds, point) ) {
          [self checkcollision];
      }
  
  
  }
  
  
  
  
  -(void)checkcollision {
  
  
      pimple.center = CGPointMake(
                                  random() % (unsigned int)theview.bounds.size.width, 
                                  random() % (unsigned int)theview.bounds.size.height
  
                                  );
  
  score.text = [NSString stringWithFormat:@"%d", ([score.text intValue] + 1)];
  
  
  
      sad.hidden = NO;
  
      NSURL* popURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"pop" ofType:@"mp3"]];
      AudioServicesCreateSystemSoundID((CFURLRef) popURL, &amp;popID);
  
      AudioServicesPlaySystemSound(popID);
  
  
  
  
  }
  
  
  
  
  // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
  /*
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization.
      }
      return self;
  }
  */
  
  
  
  
  -(void)showActivity{
  
      int currentTime = [time.text intValue];
      int newTime = currentTime + -1;
      time.text = [NSString stringWithFormat:@"%d", newTime];
  }
  
  // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  -(void)viewDidLoad {
  
      myTicker = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector (showActivity) userInfo:nil repeats:YES];
  
          [label2 setHidden:YES];
      [super viewDidLoad];
  
  
  }
  
  
  -(void)void2 {
  
  
  
  if ([label3.text isEqualToString:@"0"]) { 
          [[self view] addSubview:timeup];
          score.text = label2.text;
          label2.hidden = NO;
  
      }
  
  }
  /*
  // Override to allow orientations other than the default portrait orientation.
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      // Return YES for supported orientations.
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }
  */
  
  -(void)didReceiveMemoryWarning {
      // Releases the view if it doesn't have a superview.
      [super didReceiveMemoryWarning];
  
      // Release any cached data, images, etc. that aren't in use.
  }
  
  -(void)viewDidUnload {
      [super viewDidUnload];
      // Release any retained subviews of the main view.
      // e.g. self.myOutlet = nil;
  }
  
  
  - (void)dealloc {
      [super dealloc];
  }
  
  
  @end
  </code></pre>
  
  <p>.h:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;AVFoundation/AVFoundation.h&gt;
  #import &lt;AudioToolbox/AudioToolbox.h&gt;
  
  
  @interface Skin : UIViewController {
  
      IBOutlet UIImageView *pimple;
  
  
  IBOutlet UIImageView *smile;
  IBOutlet UIImageView *sad;
  AVAudioPlayer *theAudio;
  IBOutlet UIView *theview;
  SystemSoundID popID;
  IBOutlet UIImageView *face;
  IBOutlet UIImageView *face2;
  IBOutlet UIImageView *face3;
  IBOutlet UIImageView *face4;
  IBOutlet UIImageView *face5;
  IBOutlet UIImageView *face6;
  IBOutlet UIImageView *face7;
  IBOutlet UIImageView *face8;
  IBOutlet UIImageView *face9;
  IBOutlet UIImageView *face10;
  IBOutlet UIImageView *face11;
  IBOutlet UIImageView *face12;
  IBOutlet UIImageView *face13;
  IBOutlet UIImageView *face14;
  IBOutlet UIImageView *face15;
      IBOutlet UILabel *label2;
  IBOutlet UILabel *score;
  IBOutlet UIImageView *skin;
  
      IBOutlet UILabel *time;
      NSTimer * myTicker;
      IBOutlet UILabel *label3;
      IBOutlet UIImageView * timeup;
  }
  -(IBAction)start;
  -(void)void2;
  -(void)showActivity;
  @property (nonatomic, retain) UILabel *label;
  @property (nonatomic, retain)AVAudioPlayer *theAudio;
  -(void)checkcollision;
  
  
  
  @end
  </code></pre>
  
  <p>I have not used all of my outlets and ibactions yet. And i have not used avfoundation yet
  I have CONNECTED EVERYTHING! I HAVE CHECKEED A THOUSAND TIMES! When it reaches zero nothing happens and the timer just goes to the negatives. WHat am I doing wrong? </p>