在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Add a UIWebView programmatically without using a .xib file. This goes in the views controller. Original from http://www.gibsontang.com/?p=176 (Big thanks man!) - (void) initUIWebView { UIWebView *aWebView; // init and create the UIWebView //set the web view delegates for the web view to be itself //Set the URL to go to for your UIWebView //Create a URL object. //URL Requst Object //load the URL into the web view. //add the web view to the content view [aWebView release], aWebView = nil; } - (void)viewDidLoad { [self initUIWebView]; // <<<<<<<<<<<< this calls the UIWebView Function } |
请发表评论