Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 UILabel,它在用户输入文本字段时显示字符数。目前它位于一个半透明的 UIToolbar 后面。我希望 UILabel 位于 UIToolbar 之上。我怎样才能做到这一点?
我会将它UIToolbar作为UIBarButtomItem. 用 实例化它[[UIBarButtonItem alloc] initWithCustomView:myLabel]。
UIToolbar
UIBarButtomItem
[[UIBarButtonItem alloc] initWithCustomView:myLabel]