Hey friends,
I am trying to create a UIWebView in UITableView footer. The table is grouped. Actually I am trying to create a hyperlink using UIWebView. For example there should be some text like
Hey folks Contact me
Contact me should be a hyperlink and I want to place this text in UITableView footer. I am unable to figure out how to do it..please guide me guys..if possible please post some sample code or please give me a link for the tutorial..I didn't use IB here to create the webview..I just declared webview in .h file
This is the code I wrote in viewForFooterInSection method
CGRect webFrame = CGRectMake(20,500,buttonView.frame.size.width,buttonView.frame.size.height);
webView = [[UIWebView alloc] initWithFrame:webFrame];
webView.backgroundColor = [UIColor lightGrayColor];
[self.view addSubview:webView];
NSString *html = @"<html><head></head><body>Hey Folks Contact Us</br></body></html>";
[webView loadHTMLString:html baseURL:[NSURL URLWithString:@"http://www.example.com"]];