1

I am trying UITabBar app in iPAD. But, I faced some challenges in UI.

Required UI

enter image description here

My Output

enter image description here

I have tried to move this UITabBarItem by using,

enter image description here

But, I unable to select the UITabBarItem. Kindly guide me, how to solve this ?

McDonal_11
  • 3,935
  • 6
  • 24
  • 55
  • 2
    I would create a subclass of UITabBar and I would override `layoutSubviews()` . I guess I would have to get all bar items in a for loop and when I would have them I would set their origin to match the desired position. – Andrej Aug 05 '16 at 07:11
  • Thanks @Andrej .. I dont have subclass code. New to this. If u havin, pls post on this. – McDonal_11 Aug 05 '16 at 09:28
  • I've tried this, but it's not a trivial task to get the frames of bar items, as UITabBarItem inherits from UIBarItem and NSObject only, but not UIView. I would suggest you search for "get uitabbarbutton". Once you get the frame you can change it's origin. – Andrej Aug 05 '16 at 10:39

0 Answers0