Skip to content

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

License

Notifications You must be signed in to change notification settings

matteogobbi/GBPathImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published