hi all. i have a problem with the uibuttons . i cant scale image to fit their frame . please any advice
A:
UIButton *Btn = [UIButton buttonWithType:UIButtonTypeCustom];
Btn.frame = //set frame using CGRectMake(x,y,width,height);
[Btn setBackgroundImage:[UIImage imageNamed:@"image name here"] forState:UIControlStateNormal];
Matrix
2010-08-26 16:14:59
^^ it's a little late ive found the solution I needed to combine setbackgroundimage and set to fill
zdali
2010-08-27 18:33:44