Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.31 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.31 KB

GBPathImageView

With this class, you can get images in the circles or squares with the border.

GBPathImageView screenshot

Example Usage

This is an easy example to init the control from code:

    GBPathImageView *squareImage = [[GBPathImageView alloc] initWithFrame:CGRectMake(26, 117, 130, 130) image:[UIImage imageNamed:@"me.png"] pathType:GBPathImageViewTypeSquare pathColor:[UIColor orangeColor] borderColor:[UIColor redColor] pathWidth:6.0];
    [self.view addSubview:squareImage];

Or get from nib, set params (or leave default) and start the draw method

    GBPathImageView *img1 = (GBPathImageView *)[self.view viewWithTag:1];
    [img1 setPathColor:[UIColor yellowColor]];
    [img1 setBorderColor:[UIColor blackColor]];
    [img1 setPathWidth:6.0];
    [img1 setPathType:GBPathImageViewTypeCircle];
    [img1 draw];

See the example's project.

Contact

Matteo Gobbi

License

GBPathImageView is available under the MIT license.