UIScrollView encapsulation and UIScrollView Encapsulation
UIScrollView Encapsulation
Effect
Features
1. Easy to use, size, and random location setting
2. You can have data from multiple data sources and customize an inaccessible interface (like a text with no text)
3. Click events
Usage
1. test these files from the source code (ScrollViewImageProtocol. h and CustomImageView. h/. m and ScrollImageView. h/. m) (five files are correct)
2. The created model must comply with the Protocol ScrollViewImageProtoc. h and implement two methods.
3. For the customized interface, refer to the TestImageView. h/. m file in the source code.
4. For details about how to add scrollView, refer to the method in ViewController.
Source code
Github: https://github.com/makingitbest/UIScrollViewImage
Details
1. For details about how to add scrollView, refer to the method in ViewController.
2. Details about parameters in the underlying ScrollImageView
3. view of the parent class, which is used to inherit and implement the methods in the Custom interface.
4. Protocol, two of which are implemented in model.