最近模仿写了一下网易彩票的新特性界面,发现在用ButtonWithType方法时,需要重写自定义Button的initWithFrame方法,才能在界面上正常显示。
下面是重写init方法:
界面效果:
重写initWithFrame方法:
界面效果:
最近模仿写了一下网易彩票的新特性界面,发现在用ButtonWithType方法时,需要重写自定义Button的initWithFrame方法,才能在界面上正常显示。
下面是重写init方法:
界面效果:
重写initWithFrame方法:
界面效果: