iThinkerYZ / YZPullDownMenuDemo

快速继承搜索界面下拉菜单
MIT License
208 stars 42 forks source link

自定义button可以再加一点 #6

Open SPStore opened 8 years ago

SPStore commented 8 years ago

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