UILabel inside UIToolbar using IB is invisible at startup, how to fix?

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

However, when I run the application, UILabel is completely invisible (but can set the values ​​in order).

The most bizarre thing is that in another form, everything works fine. I don’t understand why they work in one form, but not in another ...

Any idea how to fix this? Or why is this happening?

+5
source share
3 answers

Do not use UILabel.

UIBarButtonItem. : plain. , . .

UIBarButtonItem . "" UILabel UIBarButtonItem, , .


:

, "" . , , , , . , Apple /, "float things on top of it". HIG, , .

: , , , , , .

+21

IB " " ( "" )? , - .

, nil 0x0? , , , ( IB IBOutlet).... , (s ) , nil ( 0x0). , , .

0

UIButton UIToolBar. User Interaction Enables .

UIButton , UILabel. , .

UILabel into a UIToolbar

0

All Articles