开发者

IPhone: Custom Button - Why is title not showing?

开发者 https://www.devze.com 2023-01-15 21:14 出处:网络
So I basically dragged a button from interface builder\'s library, turned it into a Custom button. Then I added one png for the \"default state configurat开发者_JS百科ion\" and another png for the \"h

So I basically dragged a button from interface builder's library, turned it into a Custom button. Then I added one png for the "default state configurat开发者_JS百科ion" and another png for the "highlighted state configuration". Let's just assume these png's are a red box and a blue box.

Now, I'd like the Title to display for the button i.e., "Press Me" or something. But the Title doesn't show. Am I missing something?? (I also tried to have that text in different colors but no dice...)

Thanks in advance.


Are you setting imageForState or backGroundImageForState? :)

0

精彩评论

暂无评论...
验证码 换一张
取 消