2012-03-12 92 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]; 
相關問題