In the app in the use of webview

First to build a view base app. And then open the viewcontroller.xib, put a webview, if not hidden away on the status bar, in the view in the settings.

Who put in viewcontroller.h

        IBOutlet UIWebView *webView;
@property (nonatomic, retain) UIWebView *webView;

In ib, the reference to uiwebview way or another file's owner, select webView, association of the variables.

viewcontroller.m in addition

@synthesize webView;

Loaded with url code.

- (void)viewDidLoad {
        NSString *urlAddress = @"http://www.google.com";

        //Create a URL object.
        NSURL *url = [NSURL URLWithString:urlAddress];

        //URL Requst Object
        NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

        //Load the request in the UIWebView.
        [webView loadRequest:requestObj];
}

Came running to the default load google. If you need to add full-screen in the plist
Status bar is initially hidden = true
If the horizontal screen to add
Initial interface orientation = Landscape (right home button)

Reference:
http://www.iphonesdkarticles.com/2008/08/uiwebview-tutorial.html
http://www.edumobile.org/iphone/ipad-development/webview-application-in-ipad/ #

分类:Mobile 时间:2010-10-28 人气:137
分享到:
blog comments powered by Disqus

相关文章

  • There were the original "Google Programming Institute"-google code university 2010-04-28

    Today, suddenly found a "Google Programming School" google code university's, which a lot of resources, web site http://code.google.com/intl/zh-CN/edu/ Which also provided some tutorial videos, but let youtube, and domestic normal acces ...

  • 使用Google Analytics对Google SEO来源关键字排名进行跟踪-[SEO效果跟踪] 2013-10-02

    相对于国内网站,Google Analytics在外贸站点的使用比率相对较高,对使用Google Analytics跟踪SEO效果的需求也更加迫切。继上一篇《用google analytics获取百度来源关键字排名情况-[SEO效果跟踪]》之后,本文将进一步和大家一起探讨,如何使用Google Analytics对Google SEO来源关键字排名进行跟踪。 温馨提示:本文正则部分有调整,请以文字为准(图片未更新)。若你觉得前面两部分的介绍过于??拢?胫苯咏?胧嫡讲僮鞑糠帧?/p> 图一:

  • Google 小工具:Google Calendar for Google Desktop 2015-02-08

    Google Calendar界面 Google Calendar界面   新浪科技讯 北京时间1月21日晚间消息,谷歌昨天宣布为Google Desktop(谷歌桌面)推出Google Calendar(谷歌日历)插件。   谷歌软件工程师本杰明·舍尔默(Benjamin Schirmer)昨天在谷歌官方Gmail博客上称:“如果想要轻松追踪谷歌桌面上即将来临的约会,那么这一拥有更整洁界面的新版本十分合适,它能完全支持Google Apps日历,可用三种模式观看。”   “用户可点击某项约会查

  • Google Analytics中 Google图片/视频/购物搜索流量来源细分 2015-05-02

    之前在幽游的博客中,看到一篇关于Google谷歌图片/购物/视频搜索流量来源的引荐URL特征分析的文章,用于细分Google的流量来源。Google Analytics默认将Google网页、图片、购物、视频搜索的流量来源都显示为google,不利于关键字与访客细分。本文将基于幽游总结的URL特征,介绍如何通过Google Analytics中过滤器设置细分Google搜索流量来源。 图一:Google搜索流量细分 Google图片/购物/视频搜索流量的引荐地址特征分析 通过对Google各类流

  • google app engine Google Application Engine 2010-06-20

    Use google appengine application engine for some time, began to use python, then google even begun to support java, which really made me was very excited, but also the traditional application server that a lot of difference, most notably in the data

  • Google http://code.google.com/intl/zh-CN/apis/libraries/devguide.html 2010-07-29

    http://code.google.com/intl/zh-CN/apis/libraries/devguide.html

  • [Google paper II] Google File System (on) 2010-12-17

    Reprinted please specify: http://duanple.blog.163.com/blog/static/7097176720109145829346/ of phylips @ bmy Abstract We designed and implemented the google file system, one for the large-scale distributed data intensive applications, scalable distributed f

  • [Google paper II] Google File System (below) 2010-12-17

    Reprinted please specify: http://duanple.blog.163.com/blog/static/7097176720109151534289/ of phylips @ bmy 6. Measurement In this section, we use some small-scale tests to demonstrate the GFS architecture and implementation bottlenecks inherent in, there

  • This is a google bug? Or google in evil? Map with the truth! 2011-09-25

    2011-09-25 10:42 (Category: Default Category ) Open www.google.com.hk Enter the mobile phone recharge outlets hit search The first link: is 9991.com. But click inside, they found! When you direct access to the browser when 9991.com The figure is the

  • Google 地图 API Google Map 2010-01-26

    Google Map 网站 : https://developers.google.com/maps/index Google 地图 API 是一种通过 JavaScript 将 Google 地图嵌入到您的网页的 API。该 API 提供了大量实用工具用以处理地图(正如 http://maps.google.com 网页上的地图),并通过各种服务向地图添加内容,从而使您能够在您的网站上创建功能全面的地图应用程序。 授权协议: 未知 开发语言: JavaScript 操作系统: 跨平台

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.121 (s). 14 q(s)