2012-03-12 90 views

回答

0

你只是想一个背景图像添加到按钮

UIImage *image = [UIImage imageNamed:@"YourBadge.png"]; 
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; 
    button.frame = CGRectMake(200.0, 10.0, 20.0, 20.0); // or whatever dimensions you want 
    [button setBackgroundImage:image forState:UIControlStateNormal]; 
相关问题