Uitabbarcontroller is a view controller that is often used in development, but the default Uitabbarcontroller often does not fully meet our needs, so we often need to customize a uitabbarcontroller.
Next, we'll come to define a uitabbarcontroller. First of all we should understand that when customizing a uitabbarcontroller, in most cases we need to modify only the uitabbar below it, we need a richer style to meet our needs. Next we look at the specific operation!
First step: Creating a class file inheritance Uitabbarcontroller
Step Two: Customize the button to implement the upper and lower structure of the button's picture text
Step three: Initialize the data for the option button
In the implementation file, the original Tabbar is hidden first, and the data of the option button is initialized, the caption of the button and the display picture name of the button are stored in an array for easy access and modification, and then the tabbar that we redefined will be added to the view controller.
Fourth step: Run Validation
Running result: can realize the effect of sliding the background picture of the button
Jerry Education
Source:http://www.cnblogs.com/jerehedu/
Copyright Notice: The copyright of this article belongs to cigarettes DeskJerry EducationSectionTechnology Co., Ltd. and blog Park are shared, welcome reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility.
Technical Consultation:
Custom Uitabbarcontroller for iOS development