iPhone Web App及优缺点【书摘】

简介: 最近看了一本图书“Building iPhone Apps with HTML, CSS, and JavaScript”,对Web App的开发有了深入的了解 特摘录一些片段,以作为实现选型的依据。
最近看了一本图书“Building iPhone Apps with HTML, CSS, and JavaScript”,对Web App的开发有了深入的了解
特摘录一些片段,以作为实现选型的依据。

http://www.oreilly.com/catalog/9780596805784/

http://examples.oreilly.com/9780596805791/

 

What Is a Web App?

To me, a web app is basically a website that is specifically optimized for the iPhone. The site can be anything from a standard small-business brochure site to a mortgage calculator to a daily calorie trackerthe content is irrelevant. The defining characteristics of a web app are that the user interface is built with web-standard technologies, it is available at a URL (public, private, or behind a login), and it is optimized for the specifics of the iPhone. A web app is not installed on the phone, is not available in the iTunes App Store, and is not written with Objective-C.

What Is a Native App?

In contrast, native apps are installed on the iPhone, have access to the hardware (speakers, accelerometer, camera, etc.), and are written with Objective-C. The defining characteristic of a native app, however, is that its available in the iTunes App Storea feature that has captured the imagination of hordes of software entrepreneurs worldwide, myself included.

 

Pros and Cons

Different applications have different requirements. Some apps are a better fit with web technologies than others. Knowing the pros and cons of each approach will help you make the right decision about which path is appropriate for your situation.

Here are the pros of native app development:

Millions of registered credit card owners are one click away.

Xcode, Interface Builder, and the Cocoa Touch framework constitute a pretty sweet development environment.

You can access all the cool hardware features of the device.

Here are the cons of native app development:

You have to pay to become an Apple developer.

You are at the mercy of the Apple approval process.

You have to develop using Objective-C.

You have to develop on a Mac.

You cant release bug fixes in a timely fashion.

The development cycle is slow, and the testing cycle is constrained by the App Stores limitations.

Here are the pros of web app development:

Web developers can use their current authoring tools.

You can use your current web design and development skills.

You are not limited to developing on the Mac OS.

Your app will run on any device that has a web browser.

You can fix bugs in real time.

The development cycle is fast.

Here are the cons of web app development:

You cannot access the all cool hardware features of the phone.

You have to roll your own payment system if you want to charge for the app.

It can be difficult to achieve sophisticated UI effects.

相关文章
|
8月前
|
JSON 缓存 搜索推荐
Progressive Web Apps(PWA):未来网络体验的崭新纪元
在当今数字化的世界中,Progressive Web Apps(PWA)已经成为了Web开发的一项重要趋势。PWA是一种结合了Web和原生应用程序优点的新型Web应用,它们提供了高性能、离线访问和优秀的用户体验。本博客将深入探讨PWA的概念、特点以及为什么它们对未来网络体验如此重要。
69 0
|
4月前
|
移动开发 小程序 JavaScript
Uniapp 中,能够同时兼容H5、web、app、微信小程序的引入高德地图的语法格式
Uniapp 中,能够同时兼容H5、web、app、微信小程序的引入高德地图的语法格式
115 0
|
5天前
|
XML 开发框架 .NET
C#/ASP.NET应用程序配置文件app.config/web.config的增、删、改操作
C#/ASP.NET应用程序配置文件app.config/web.config的增、删、改操作
|
14天前
|
缓存 移动开发 前端开发
【专栏:HTML与CSS前端技术趋势篇】HTML与CSS在PWA(Progressive Web Apps)中的应用
【4月更文挑战第30天】PWA(Progressive Web Apps)结合现代Web技术,提供接近原生应用的体验。HTML在PWA中构建页面结构和内容,响应式设计、语义化标签、Manifest文件和离线页面的创建都离不开HTML。CSS则用于定制主题样式、实现动画效果、响应式布局和管理字体图标。两者协同工作,保证PWA在不同设备和网络环境下的快速、可靠和一致性体验。随着前端技术进步,HTML与CSS在PWA中的应用将更广泛。
|
15天前
|
存储 前端开发 JavaScript
【Web 前端】JS中的栈和堆是什么?优缺点?
【4月更文挑战第22天】【Web 前端】JS中的栈和堆是什么?优缺点?
|
17天前
|
Web App开发 缓存 前端开发
【专栏】探索前端技术WebAssembly和Progressive Web Apps(PWA)如何塑造前端开发的未来
【4月更文挑战第27天】本文探讨了WebAssembly和Progressive Web Apps(PWA)如何塑造前端开发的未来。WebAssembly是一种低级字节码格式,允许在浏览器中运行接近原生性能的代码,解决JavaScript在高性能计算上的局限。PWA则通过Service Workers等技术提升网站的离线使用和性能,提供类似原生应用的体验。这两项技术的崛起将使前端开发更高效、多样化,并推动Web应用向更离线化和本地化发展。随着5G和物联网的发展,前端技术将在边缘计算和智能设备中发挥更大作用。开发者需持续学习适应新技术,以应对这个快速变化的领域。
|
3月前
|
机器学习/深度学习 缓存 前端开发
用纯python写web app:Streamlit
一句话,Streamlit是一个可以用python编写web app的库,可以方便的动态展示你的机器学习的项目。【2月更文挑战第9天】
97 0
|
3月前
|
开发框架 JavaScript API
uni-app的优缺点?
uni-app的优缺点?
|
5月前
|
移动开发 开发框架 小程序
uni-app的优缺点;uniapp进行条件编译的两种方法;小程序端和H5的代表值
uni-app的优缺点;uniapp进行条件编译的两种方法;小程序端和H5的代表值
91 0
|
5月前
|
移动开发 小程序
微信小程序web-view嵌入uni-app H5页面,通过H5页面传参给小程序进行转发分享页面,并通过点击转发出来的卡片,定向打开对应H5路径
微信小程序web-view嵌入uni-app H5页面,通过H5页面传参给小程序进行转发分享页面,并通过点击转发出来的卡片,定向打开对应H5路径