简体   繁体   English

如何开发看起来像本机应用程序的iphone的网页?

[英]How do I develope webpages for the iphone that look like native apps?

If you look at some google pages (ie. mail.google.com/tasks) on the iphone they look a lot like native iphone apps. 如果你在iphone上查看一些谷歌页面(即.mail.google.com/tasks),它们看起来很像原生的iphone应用程序。 Does anyone know how they got it to mimic the look of the native apps and is there a resource that describes how to do it? 有谁知道他们如何模仿原生应用程序的外观,是否有资源描述如何做到这一点?

Also does one have access to any of the iphone hardware data ( ie. accelerometer data, gps information ) from the javascript on the clients safari browser? 还可以从客户端Safari浏览器上的javascript访问任何iphone硬件数据(即加速计数据,gps信息)吗? I imagine not but I thought I would ask anyway. 我想不到,但我想我还是会问。

This article talks about how you can make your website iPhone friendly : http://www.hanselman.com/blog/MakeYourWebsiteMobileAndIPhoneFriendlyAddHomeScreenIPhoneIconsAndAdjustTheViewPort.aspx 本文讨论如何使您的网站iPhone友好: http//www.hanselman.com/blog/MakeYourWebsiteMobileAndIPhoneFriendlyAddHomeScreenIPhoneIconsAndAdjustTheViewPort.aspx

To answer your second question I would like to direct you towards "Phonegap" ( http://phonegap.com/ ) which is an open source development tool for building fast, easy mobile apps with JavaScript and supports accessing geolocation and accelerometer data for the iPhone. 为了回答你的第二个问题,我想引导你走向“Phonegap”( http://phonegap.com/ )这是一个开源开发工具,用于使用JavaScript构建快速,简单的移动应用程序,并支持访问地理位置和加速度计数据。苹果手机。

A Google search for "HTML iphone" yields heaps of answers. Google搜索“HTML iphone”会产生大量答案。 You need to pay close attention to the conditional HTML for the iphone. 您需要密切关注iphone的条件HTML。 This article seems to cover a lot of information needed for the look/feel: iphone-development-12-tips 这篇文章似乎涵盖了外观/感觉所需的大量信息: iphone-development-12-tips

I also stumbled across an API that might be of some use: http://code.google.com/p/iui . 我还偶然发现了一些可能有用的API: http//code.google.com/p/iui They have some live demos: 他们有一些现场演示:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM