UILabel inside a UIToolbar using IB is invisible on run, how fix?

前端 未结 3 1834

I want to show a total inside a toolbar. I put in IB the UILabel on top of the toolbar .

However, when I run the app, the UILabel is totally invisible (but can set v

3条回答
  •  灰色年华
    2020-12-30 16:46

    drag a UIButton into your UIToolBar. Then uncheck User Interaction Enables for this button.

    Customize your UIButton so that it will look like a UILabel. Hope this will help you.

    UILabel into a UIToolbar

提交回复
热议问题