GDPView
How to use
To run the example project, clone the repo, and run pod install from the Example directory first.
1. Create a customized view : GDPDemoView
GDPDemoView.h GDPDemoView.m GDPDemoView.xib
2. Go to GDPDemoView.xib, set File's Owner as GDPDemoView class.
3. Link File's Owner's contentView to the view in GDPDemoView.xib.
4. Do what event you want in the xib file .... (Yeah)
5. Use GDPDemoView like a UIView.
(1) By code
GDPDemoView *demoView = [[GDPDemoView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
demoView.detail = @"GDPDemoView, Init by code!";
demoView.contentView.backgroundColor = UIColor.redColor;
[self.view addSubview:demoView];(2) In Xib/Storyboard
6. Snapshots
Requirements
iOS 8+ Xcode 10+
Installation
GDPView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GDPView'Author
宇园: [email protected], [email protected] from 稿定(厦门)科技有限公司
License
GDPView is available under the MIT license. See the LICENSE file for more info.



