■透明度
以下の記述によって透明度を設定することができる。
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.alpha = 0.80;
■タッチ
以下の記述によってタッチを無効化することができる。
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.userInteractionEnabled = NO;
以下の記述によって透明度を設定することができる。
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.alpha = 0.80;
以下の記述によってタッチを無効化することができる。
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btn.userInteractionEnabled = NO;