GDPView 0.1.0

GDPView 0.1.0

Maintained by Quanhua-Guan.



GDPView 0.1.0

  • By
  • yuyuan

GDPView

CI Status Version License Platform

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.

1. files owner set to gdpdemoview

3. Link File's Owner's contentView to the view in GDPDemoView.xib.

2. link contentView of files owner to the view in the 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

use in xib

6. Snapshots

snapshot1

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

yuyuan, [email protected]

License

GDPView is available under the MIT license. See the LICENSE file for more info.