Monday, April 23, 2012

Add rounded Corners and Border to UIImageView


    First you have to import 

Add rounded Corners:

        imageView_.layer.cornerRadius = 5.0;
        imageView _.layer.masksToBounds = YES;

Add Border :
        imageView _.layer.borderColor = [UIColor whiteColor].CGColor;
        imageView _.layer.borderWidth = 3.0;

No comments:

Post a Comment

Add your comment