Latest 0.1.0
Homepage https://github.com/Quanhua-Guan/GDPView
License MIT
Platforms ios 8.0
Authors

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

宇园: [email protected], [email protected]
from 稿定(厦门)科技有限公司

License

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

Latest podspec

{
    "name": "GDPView",
    "version": "0.1.0",
    "summary": "Its GDPView.",
    "description": "Help you customize your view!",
    "homepage": "https://github.com/Quanhua-Guan/GDPView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yuyuan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Quanhua-Guan/GDPView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GDPView/Classes/**/*"
}

Pin It on Pinterest

Share This