The novice guide function is simply to tell the user what kind of operation can be carried out under a certain module, to guide the user, so it is simple to implement such a functional module.
First, to achieve the effect display
As you can see from the renderings, the necessary modules for new users will be simple functional explanation.
Call code
Add the function view to boot to the admin class
Management class for display
Third, tool class analysis
1.KDSGuideMannager 类
(1) Save the function area (UIView) that needs to be “booted” under unified management.
(2) Control the display and disappearance of the guidance interface.
(3) Control the delineation and description display of the next function area (UIView).
2,KDSGuideView 类
(1) The overall mask view layer.
(2) Hollow out the currently selected guidance function area (UIView)
(3) Adjust the bubble (KDSGuideBubbleView) position.
3,KDSGuideBubbleView 类
(1) Bubble labeling view.
4,KDSGuideModel 类
(1) Save UIView view and function description text
Four, implementation code
1.KDSGuideMannager 类
KDSGuideMannager.h
KDSGuideMannager.m
2,KDSGuideView 类
KDSGuideView.h
KDSGuideView.m
3,KDSGuideBubbleView 类
KDSGuideBubbleView.h
KDSGuideBubbleView.m
4,KDSGuideModel 类
KDSGuideModel.h
KDSGuideModel.m
Other effects display
Personal summary, bad code, big god don’t laugh.