gavinkwoe / BeeFramework

[Experimental] A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS
MIT License
3.33k stars 1.06k forks source link

关于BeeUIButton中的自定义label的问题 #136

Open mylonly opened 9 years ago

mylonly commented 9 years ago

我在用css中的text-insets属性时发现无效,看源码时发现BeeUIButton实现了自己的一个label,没有使用UIButton的titleLabel,而在解析text-inserts值是确调用的是UIButton的setTitleEdgeInsets方法导致无效。我想修改BeeUIButton去掉自定义的label使用uibutton自己的titleLabel,但是不知道到当初写BeeUIButton自定义自己label是不是还有更深层次的考虑?

mylonly commented 9 years ago

而且在BeeUIButton中使用setTitleColor:forState也是无效的,我感觉这个设置是UIButton中很好用的一个功能,为什么要在BeeUIButton中没有给其自定义的label实现这个功能?