How can I change UIButton title color?

Posted by HelloWorld on Stack Overflow See other posts from Stack Overflow or by HelloWorld
Published on 2010-03-19T00:31:09Z Indexed on 2010/03/19 0:41 UTC
Read the original article Hit count: 293

Filed under:
|

I create a button programmatically

button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self 
       action:@selector(aMethod:)
forControlEvents:UIControlEventTouchDown];
[button setTitle:@"Show View" forState:UIControlStateNormal];
button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
[view addSubview:button];

how can I change title color?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uibutton