With this class, you can get images in the circles or squares with the border.
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.
Matteo Gobbi
- http://www.matteogobbi.it
- http://github.com/matteogobbi
- http://twitter.com/matteo_gobbi
- https://angel.co/matteo-gobbi
- http://www.linkedin.com/profile/view?id=24211474
GBPathImageView is available under the MIT license.