Easy method for add image to the footer and the header in UITableView
UIImageView * tableHeader = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"header.png"]];
[areasTableView setTableHeaderView:tableHeader];
UIImageView * tableFooter = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"footer.png"]];
[areasTableView setTableFooterView:tableFooter];
Written by Jorge Galindo Cruces
Related protips
1 Response
(Joke) Hey! you forget deobfuscate the code first!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Objective-c
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#