title: Can't pass int to UIView with drawRect
body: <p>How do I pass an int to a UIView that is using drawRect to make me a circle arc?</p>
  
  <p>I'm trying to draw a circle arc, and every second, call setNeedsDisplay on the UIView with an int advanced by one (secs). This doesn't seem to be calling and remains (null) when I call <code>NSLog(@"draw, %d",self.secs);</code></p>
  
  <p>basically my code log just reads "draw 1" followed by "draw 0" every second.</p>
  
  <p>draw.h</p>
  
  <pre><code>@property (nonatomic) int secs;
  </code></pre>
  
  <p>draw.m</p>
  
  <pre><code>@synthesize secs;
  
  - (void)drawRect:(CGRect)rect
  {
      NSLog(@"draw, %d",self.secs);
      //stuff with using this value   
  }
  @end
  </code></pre>
  
  <p>main VC.m - NSTimer calls this, but tick.secs seems to be 0 every time</p>
  
  <pre><code>draw *tick = [[draw alloc] init];
  tick.secs = tick.secs+1;
  NSLog(@"draw, %d",tick.secs);
  [self.drawView setNeedsDisplay];
  </code></pre>
  
  <p>EDIT 1:</p>
  
  <p>Stonz2 is quite correct, I should use an instance <code>draw</code> - this has solved half of my problem. Now in my main VC.m, <code>tick.secs</code> is increasing every second, but in draw.m, drawRect still thinks <code>secs</code> is 0 every second</p>
  
  <p>EDIT 2:
  Sha fixed it with his observation of my IBOutlet using UIView, not draw</p>