Wednesday 18 December 2013

Programatically create Button in iphone

-(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

Comment