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]