Hey all I am trying to set cell.imageView
's cornerRadius
, but it doesn't seem to work.
cell.imageView.layer.cornerRadius=9;
Will it work or should I add a custom UIImageView
in my cell to have rounded corners?
I also tried this
cell.imageView.layer.borderWidth=2;
cell.imageView.layer.borderColor=[[UIColor blackColor]CGColor];
But it also doesn't seem to work. Has anybody faced a similar issue?
First add Framework -> QuartzCore.framework to your project
then import header file in your
ViewController.m
fileAdd following code in your
cellForRowAtIndexPath
method: