Feeding a list of URL's to UIWebview
What would be the best way to provide a list of URL's to UIWebview ? I'm using the new pagecurl app preset (in iOS 5 beta ) and replacing the stock UIView by a UIWebview, I realise this is pretty basic but any pointer would be very informative, first I should try to init the UIWebview with开发者_开发技巧 a single URL but ultimately I would like to feed a list of urls to be able to use the pagecurl to transition between the different addresses ..
any help would be greatly appreciated .
Thanks !
EDIT
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 680, 700)];
NSString *urlAddress = @"http://www.google.com/";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
I suggest an approach based on managing multiple UIWebviews using a broker based logic. Say you have a broker called WebViewControllerBroker that manages several UIWebViewControllers each associated with a UIWebView then you can use the approach I describe in my iOS application here - https://github.com/aish9r/Reader Feel free to use the code too. I also describe the design philosophy of designing apps similar to your use case in detail.
精彩评论