快速封装 WebApp 到 iOS 应用

jopen 9年前

ios-universal-webview-boilerplate: 快速封装 WebApp 到 iOS 应用,即便你毫无 Swift 编程经验。

快速封装 WebApp 到 iOS 应用

This is an Xcode 6 Universal project that allows you to wrap your website or web app in a super simple iOS app.

Setup

  • Clone this repo, or hit "Download ZIP" in the Github sidebar.

Local mode (recommended)

  • Replace the stuff inweb_contentwith your own mobile website.
  • Hit Run!

Internet mode

  • InViewController.swift, switch around the commented out URL lines.
  • Set your URL...
  • Hit Run!

Why?

So you can build an iOS app in HTML/CSS/JS without using Cordova.

HTML web apps are totally awesome for layout content and typography. Tons of big apps like Instagram use HTML layouts and CSS styling for parts of their apps.

If you are a web developer who wants to release an iOS app, this should help you cut some corners when it comes to learning Swift.

Ideal use

Single page web app with on-screen/no navigation. For example, a game, interactive page, web based slideshow, etc.

项目主页:http://www.open-open.com/lib/view/home/1434968669747