【Swift5】UITabBarのタイトルの位置を変更する方法【Objective-C】
UITabBarのタイトルの位置を変更する方法をご紹介します。

UITabBarはデフォルトではこのように画像と文字が配置されます。
この状態から文字だけ(ホームとサーチ)だけを右に50ずらそうと思います。
UITabBarのタイトルの位置を変更する方法

Swift5
Objective-C
// 画像と文字を右に50ずらす
[[UITabBarItem appearance] setTitlePositionAdjustment:UIOffsetMake(50, 0)];
// 画像を左に50もどす
for (UITabBarItem *item in self.tabBarController.tabBar.items) {
item.imageInsets = UIEdgeInsetsMake(0, -50, 0, 50);
}
UITabBarのタイトルだけを移動させたい場合は、まず画像とタイトルを同時に動かせるtitlePositionAdjustmentを使用した後に、画像だけを戻すようにimageInsetsを設定することでタイトルだけ移動させることができます。