Open SPStore opened 8 years ago
自定义的button中有个layoutSubViews,在super的下面,最好加上 if(self.imageView.image == nil) { return; } 如果不加,当button没有图片时,文字不会居中,而是紧靠左边!
自定义的button中有个layoutSubViews,在super的下面,最好加上 if(self.imageView.image == nil) { return; } 如果不加,当button没有图片时,文字不会居中,而是紧靠左边!