コードを使用して UITabBar にアイテムを表示しています。「お気に入り」「連絡先」のシステム アイコンでアイテムを表示するサンプルをダウンロードしました ...
UITabBarItem *favorites = [[UITabBarItem alloc] initWithTitle:nil image:a1 tag:0];
UITabBarItem *topRated = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemTopRated tag:1];
UITabBarItem *featured = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured tag:2];
UITabBarItem *recents = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:3];
私は自分の画像を使いたいので、最初の行(お気に入り)を変更しましたが、設定すると画像が途中から始まり、空の場合でも常にタイトルの小さな場所にとどまります。
これらのアイテム内の画像の位置を制御するにはどうすればよいですか? 空のタイトルの場所を無効にしますか?