0
我嘗試按鈕圖像設置alpha值驗證碼:爲ios中的uibutton setimage設置alpha值?
UIImageView *imageTopView = [[UIImageView alloc] initWithImage:
[UIImage imageNamed:@"Top_80.png"]];
imageTopView.alpha = 0.5;
topBtn = [UIButton buttonWithType:UIButtonTypeCustom];
[topBtn addTarget:self action:@selector(btnRotatingObj:)
forControlEvents:UIControlEventTouchUpInside];
[topBtn setImage: imageTopView.image forState:UIControlStateNormal];
[topBtn setTitle:@"TOP" forState:UIControlStateNormal];
[self.view addSubview:topBtn];
它不工作.....
謝謝Mundi..its工作完美 – prabu