title: getting at a UIButton with the tag property IPhone
body: <p>I'm having a little trouble using the tag property to access a UIButton</p>
  
  <pre><code>UIButton   *randomButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect ]];    
      randomButton.frame = CGRectMake(205, 145, 90, 22); // size and position of button
      [randomButton setTitle:@"Random" forState:UIControlStateNormal];
      randomButton.backgroundColor = [UIColor clearColor];
      randomButton.adjustsImageWhenHighlighted = YES; 
      [randomButton addTarget:self action:@selector(getrandom:) 
             forControlEvents:UIControlEventTouchUpInside];
      randomButton.reversesTitleShadowWhenHighlighted=YES;
      randomButton.toggleButton
  
      [self.view addSubview:randomButton];
  
      randomButton.tag=333;
  </code></pre>
  
  <p>Then later on in code I try to get at the button in the following manner which gives me an error saying </p>
  
  <blockquote>
    <p>Incompatible Objective-C types
    initializing 'struct UIView *',
    expected 'struct UIButton *'</p>
  </blockquote>
  
  <pre><code>UIButton *random = [self.view viewWithTag:333];
      random.highlighted=NO;
  </code></pre>