Really cool way to create custom UITabBar for iPhone app?

前端 未结 3 1407
独厮守ぢ
独厮守ぢ 2020-11-29 23:30

I am doing a lot of researching lately about how to get a different looking with nice effects UITabBar on my iPhone app, but unfortunately I am only finding thi

3条回答
  •  生来不讨喜
    2020-11-30 00:02

    Simply use a UIView with TabBar width and height.Add custom background image and custom buttons on the view.Set the fileowner of the view as AppDelegate.Now you can simply connect the IBActions with the buttons.The Custom view can be placed over the tabbar by addSubView to the TabBar controller's view.You can switch between viewcontrollers by using the setSelectedIndex method of tableviewcontroller in the button action.

提交回复
热议问题