is it possible to adjust position x,y titleLabel of UIButton ?
Posted
by RAGOpoR
on Stack Overflow
See other posts from Stack Overflow
or by RAGOpoR
Published on 2010-05-11T04:30:53Z
Indexed on
2010/05/11
4:34 UTC
Read the original article
Hit count: 280
here is my code
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)];
[btn setTitle:[NSString stringWithFormat:@"Button %d", i+1] forState:UIControlStateNormal];
[btn addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside];
btn.titleLabel.frame = ???
© Stack Overflow or respective owner