A roughly method can be the following: place your UIWebView inside a UIScrollView and set the consentSize according to your needs (ie. at the end of the UIWebView contentSize append another UIView of your choice):
#import "ViewController.h"
@interface ViewController () {
UIScrollView *aScrollView;
}
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
aScrollView = [[UIScrollView alloc] initWithFrame:self.view.frame];
[self.view addSubview:aScrollView];
UIWebView *aWebView = [[UIWebView alloc] initWithFrame:self.view.frame];
aWebView.delegate = self;
[aWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]]];
[aScrollView addSubview:aWebView];
}
- (void)webViewDidFinishLoad:(UIWebView *)webview
{
CGFloat yourWebViewContentHeight = [[webview stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight"] floatValue];
[aScrollView setContentSize: CGSizeMake(aScrollView.frame.size.width, yourWebViewContentHeight + 80)];
UIView *aView = [[UIView alloc] initWithFrame:CGRectMake(0, yourWebViewContentHeight, self.view.frame.size.width, 80)];
aView.backgroundColor = [UIColor redColor];
[aScrollView addSubview:aView];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
For more fine grain you have to deal with scrollviewdelegate but this can be a good startpoint.