Official description: Towebviewcontroller is an online web browsing view controller that can be used to quickly display Web content, automatically customizing the look based on the current IOS version of the device, and dynamically generating all the images needed for the runtime. Compatible with IPhone and IPad, requires IOS 5.0 and above.
: Https://github.com/TimOliver/TOWebViewController
Use Towebviewcontroller to reference TOWebViewController.h header file
#import " TOWebViewController.h "
Add the following method to the. m file to use
//The comment section is the method used by the UIWebView//FINANCIALVC *FINANVC =[[FINANCIALVC Alloc]init]; //Self.navigationcontroller PUSHVIEWCONTROLLER:FINANVC Animated:yes]; //instantiate and set the connection addressNSString *url =@"Ww.apple.com/iphone"; Towebviewcontroller*toweb =[[Towebviewcontroller alloc] Initwithurl:[nsurl Urlwithstring:url]]; //to set an open animation effect, open the effect in the following four://bottom up uimodaltransitionstylecoververtical//Fade in Uimodaltransitionstylecrossdissolve//Flip Uimodaltransitionstylefliphorizontal//turn half page uimodaltransitionstylepartialcurl[Toweb setmodaltransitionstyle:uimodaltransitionstylefliphorizontal]; [Self Presentviewcontroller:[[uinavigationcontroller alloc] Initwithrootviewcontroller:toweb] Animated:NO Completion:nil];
Ios-towebviewcontroller Introduction to use