This topic created in 5235 days ago, the information mentioned may be changed or developed.
应客户的蛋疼要求把tabbar上面的元素当做button用,不想手写一个tabbar,所以偷懒在tabbar上面盖了一几个button把alpha值设为0。但是点击之后没效果相当于点到后面的tabbar上面去了,alpha值为0.1的时候还有效的。
3 replies • 1970-01-01 08:00:00 +08:00
 |
|
1
ytzong Mar 13, 2012
拖一个 button 改 type 为 custom 再改下宽高就可以了吧
|
 |
|
2
lex Mar 13, 2012
可以建个 UIView, userInteractionEnabled = YES alpha 不改,默认 1. backgroundColor = [UIColor clearColor] 然后用 drawRectBlock 在里面填充 [[UIColor colorWithWhite:1. alpha:.0001] CGColor]
|
 |
|
3
laihj Mar 13, 2012
[UIColor clearColor]能用
|