用setBackgoundImage时,不管按钮是system还是custom,图片和标题都正常显示
用setImage时,按钮是custom时,图片正常显示,标题不显示
用setImage时,按钮是system时,图片标题都不显示
如下图所示:
第一个和第四个是用setBackgroundImage
第二个和第三个用setimage,按钮类型分别是system和custom
所以,任何时候都用setImageBackground就对了!!!!!!!
用setBackgoundImage时,不管按钮是system还是custom,图片和标题都正常显示
用setImage时,按钮是custom时,图片正常显示,标题不显示
用setImage时,按钮是system时,图片标题都不显示
如下图所示:
第一个和第四个是用setBackgroundImage
第二个和第三个用setimage,按钮类型分别是system和custom
所以,任何时候都用setImageBackground就对了!!!!!!!