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

轻松实现微信的尖角图片

如何使用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];

效果图

Latest podspec

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

Pin It on Pinterest

Share This