Sunday 10 March 2013

(15)Programatically create Button



Ø (15)Programatically create Button

-(IBAction)Click:(id)sender;
{
    UIButton *temp = (UIButton *)sender;
    [temp setTitle:@"SecondBtn" forState:normal];
    temp.imageView.exclusiveTouch= YES;
    temp.showsTouchWhenHighlighted = YES;
    temp.tintColor = [UIColor redColor];
  
    L.text = @"Second";
       
}

No comments:

Post a Comment