UIBarButtonItemは、ツールバーやナビゲーションバーなどに表示するボタンを管理するクラスです。 自作することも出来ますし、システムで用意されたボタンから選んで使うことも出来ます。 UIBarButtonItemのクラス階層 生成 // タイトルとボタンのスタイルを指定した生成例 UIBarButtonItem *btn = [[UIBarButtonItem alloc] initWithTitle:@"ぼたん" // ボタンタイトル名を指定 style:<UIBarButtonItemStyleスタイル> // スタイルを指定(※下記表参照) target:self // デリゲートのターゲットを指定 action:@selector(hoge) // ボタンが押されたときに呼ばれるメソッドを指定 ]; // システムで用意されている画像を使った生成例 UIBarButton
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く