Latest 0.0.3
Homepage https://github.com/Gavingsk/GVPackages
License MIT
Platforms ios 7.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

    UIView *newView.cornerRadius = [UIView viewWithColor:[UIColor yellowColor] size:CGSizeZero];
    //直接更改view的坐标
    newView.width = 100;
    newView.x = 100;
    newView.y = 100;
    newView.height = 100;
    newView.cornerRadius = 5;
    //支持16进制颜色
    UIColor *hexColor = [UIColor colorFromHexRGB:@"48AD32"];
    newView.backgroundColor = hexColor;
    [self.view addSubview:newView];

    //这一句
    __unsafe_unretained GVViewController *__weakSelf = self;
    //等价于
    GVWeekRef(self);
    // __weakSelf == __self;

    void(^block1)() = ^{

    [__weakSelf view];
    [__self view];

    };

    block1();

    UIWindow *window = __self.view.window;
    UIWindow *keyWindow = GVKeyWindow;
    NSString *str = [NSString stringWithFormat:@"%@%@%@",@"a",@"b",@"c",@"d"];
    NSString *newStr = GVString(@"%@%@%@",@"a",@"b");
    NSLog(@"%@",str);
    GVLog(@"%@",newStr); //在Release模式 不打印

Requirements

Installation

GVPackages is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "GVPackages"

Author

Gavingsk, [email protected]

License

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

Latest podspec

{
    "name": "GVPackages",
    "version": "0.0.3",
    "summary": "A collection of commonly used classes and methods in iOS development",
    "description": "This is a collection of commonly used classes and methods in iOS development",
    "homepage": "https://github.com/Gavingsk/GVPackages",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gavingsk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Gavingsk/GVPackages.git",
        "tag": "0.0.3"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "GVPackages/Classes/**/**.*"
}

Pin It on Pinterest

Share This