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.