Simple way to round the corners of a UIImageView

Rounding the corners of an image in a UIImageView is simple

//You will need this import
#import QuartzCore/QuartzCore.h

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

//And to add a border:
imageView.layer.borderColor = [UIColor lightGrayColor].CGColor;
imageView.layer.borderWidth = 1.0;

Adding Images to TableView footers and headers

So the client want to have fancy images in between the sections of a Grouped UITableView.

After a little bit of searching I found that it's actually not that difficult.

Here is a tutorial that is a bit more advanced that most that I have seen. In Step 9, they show how to add the images to the footer and header.


Syndicate content