0

I want to draw image with round corners. How to do this on an iPhone?

Paul Dixon
  • 295,876
  • 54
  • 310
  • 348

3 Answers3

1

See duplicated question How to mask a square image into an image with round corners in the iPhone SDK?

Community
  • 1
  • 1
Paul Dixon
  • 295,876
  • 54
  • 310
  • 348
1

i hope this may help:

Round the corners of an image

all you have to do is to:

#import <QuartzCore/QuartzCore.h>

//Then do this. Change "theImageView" with the name of your ImageView

theImageView.layer.cornerRadius = 12;

theImageView.layer.masksToBounds = YES;
Community
  • 1
  • 1
0

Use a PNG with transparent background. Then simply round the corners of your image before adding them to the iPhone.

John
  • 2,012
  • 2
  • 21
  • 33