Document directory
- Specific implementation of the jiugongge control (entire file structure and function positioning)
- Detailed descriptions of various implementations
- NAMenuItem class
- NAMenuItemView class
- NAMenuView class Implementation Details
- NAMenuViewController class Implementation Details
Implementation results:
Specific implementation of the jiugongge control (entire file structure and function positioning)
NAMenuItem: menu item data class [including menu images, labels, and switching to ViewControl class]
NAMenuItemView: menu item class (inheriting UIView to implement the interface for menu item interface and event containing buttons)
NAMenuView: menu class (inheriting UIScrollView, implementing the menu interface, including data delegation.
NAMenuViewController: menu Viewcontrol class for data Delegation
)
Detailed descriptions of various implementations NAMenuItem class
NAMenuItemView class
Implementation Details (mainly set the border of the image ):
NAMenuView class Implementation Details
MenuView implementation (through the override method of layoutSubviews)
NAMenuViewController class Implementation Details
Interface Definition
Through the process, the menuView is loaded mainly through self. view = menuView
Download the following source code:
Cammsaul-NAMenu-d4974a0.zip