Sheehan Alam
Sheehan Alam

Reputation: 60899

How to put a UILabel ontop of a UIToolbar?

I have a UILabel that shows a character count as the user types into a textfield. Currently it is sitting behind a translucent UIToolbar. I would like the UILabel to be ontop of the UIToolbar. How can I accomplish this?

Upvotes: 2

Views: 589

Answers (1)

mk12
mk12

Reputation: 26394

I would add it to the UIToolbar's items as a UIBarButtomItem. Instantiate it with [[UIBarButtonItem alloc] initWithCustomView:myLabel].

Upvotes: 5

Related Questions