Latest 1.0.0
Homepage https://github.com/wangyansnow/WYWechatImage
License MIT
Platforms ios 7.0, requires ARC
Authors

WYWechatImage

轻松实现微信的尖角图片

如何使用WYArrowImage

  • 手动导入:
    • WYArrowTool整个文件夹拖入到项目中
    • 导入头文件: WYArrowToo.h

在代码中如何使用

    UIImage *image = [UIImage imageNamed:@"ball"];

    // 左尖角
    UIImageView *leftImageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 90, 160)];
    leftImageView.image = [WYArrowImageTool arrowLeftImage:image size:leftImageView.bounds.size];
    [self.view addSubview:leftImageView];

    // 右尖角
    UIImage *arrowRightImage = [WYArrowImageTool arrowRightImage:image size:CGSizeMake(90, 160)];
    UIImageView *rightImageView = [[UIImageView alloc] initWithImage:arrowRightImage];
    rightImageView.center = self.view.center;
    [self.view addSubview:rightImageView];

效果图

WechatImage

  • cocoapods:
    • pod 'WYWechatImage'

Latest podspec

{
    "name": "WechatImage",
    "version": "1.0.0",
    "summary": "u7c7bu4f3cu5faeu4fe1u7684u5c16u89d2u56feu7247",
    "description": "u7c7bu4f3cu5faeu4fe1u7684u5c16u89d2u56feu7247uff0cu8f7bu677eu96c6u6210",
    "homepage": "https://github.com/wangyansnow/WYWechatImage",
    "license": "MIT",
    "authors": {
        "wangyansnow": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/wangyansnow/WYWechatImage.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "WechatImageDemo/WechatImageDemo/WYArrowTool/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This