Transparant webview

UIWebView *myWebView = [[UIWebView alloc] initWithFrame:CGRectMake(15, 10, 300, 10)];
myWebView.backgroundColor = [UIColor clearColor];
[myWebView setOpaque:NO];
myWebView.delegate = self;
[myView addSubview:myWebView];
NSString *bgClear = @"<body style="" background-color: transparent""> bla bla bla";
[myWebView loadHTMLString:bgClear baseURL:baseUrl];
[myWebView sizeThatFits:CGSizeZero];

Dynamic Webview Height

- (void) webViewDidFinishLoad: (UIWebView *)sender
{
[self performSelector:@selector(calculateWebViewSize) withObject:nil afterDelay:0.1];
}

- (void) calculateWebViewSize
{
UIScrollView *webScrollView = [[myWebView subviews] objectAtIndex:0];
CGSize webScrollRect = webScrollView.contentSize;
NSLog(@"webScrollrect: %f", webScrollRect.height);
}



Add UIWebViewDelegate in .h file

To specify minimum OS version

iPhone SDK Tips & Tricks
iPhone OS Deployment Target

To specify which OS version is the minimum that your application will support, you set the deployment target. Your application will then run on this minimum OS as well as all later versions.



source

How to install new iOS from IPSW file

iPhone SDK Tips & Tricks
  • You’ll use iTunes. Backup your phone as you always do.
  • Download and install the iTunes.
  • Once it’s installed, click Alt + Restore in iTunes
  • Select the IPSW file that you downloaded – let the restore happen.
That’s it, you now have new iOS.