Ios-towebviewcontroller Introduction to use

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.