iPhone Web 应用程序、模板、框架?
当我考虑制作专门用于在 iPhone 上查看的网页/网站/应用程序时,有人可以为我提供任何好的起点吗?
我看过类似 Joe Hewitt 的模板已经做了,也看到了一些可以购买的模板,但我还没有做。
我认为其他人已经开始走这条路,并决定我可以借鉴他们新发现的知识:)
那么,有人有任何指示吗? 我很清楚这样一个问题:这样的模板/框架越让 Web 应用程序看起来像原生 iPhone 应用程序,我就越有可能遇到麻烦,因为它根本不是,但现在我想要我可以开始构建一个框架,然后在此过程中找出如何使其足够独特,既可以被视为网络应用程序,又看起来像原生 iPhone 应用程序。
具体来说,我正在寻找诸如以下功能:
- 样式表设置,或如何为 iPhone
- 页面翻转动画执行这些操作的指针,即。 在列表中选择一个项目,列表从左侧滚动到视图之外,项目的信息从右侧滚动到
- 动画部分必须与动态页面配合使用,即。 不仅仅是一个为每个子项设置了 div 的大页面(至少有一个这样的框架具有一种快速修复功能),我需要让列表项选择加载页面项目,然后加载后滚动到它
编辑:为了避免人们只阅读问题和答案,在阅读我的其他回复之前,我将在此处添加对 GPL 许可和类似问题的说明。
我需要使用的框架无法在许可证下分发,这需要我在类似的许可证下许可我自己的项目。 GPL 系列许可证允许有关库使用的例外情况,但这不适用于此,因为必然,我需要使用的框架类型将全部是源代码。
该项目可以轻松容纳商业图书馆。
另外,我不需要库或框架本身,看起来不错并且没有过度混淆的示例文件也将受到欢迎。
Does anyone have any good starting points for me when looking at making web pages/sites/applications specifically for viewing on the iPhone?
I've looked at templates like the one Joe Hewitt has made, and also seen some templates I can purchase, which I haven't done yet.
I figured someone else had already started on this track and decided that I could probably leech on their newfound knowledge :)
So, does anyone have any pointers? I'm well aware of the problem that the more such a template/framework makes a web app look like a native iPhone app, the more likely I'm going to get into trouble because it just isn't, but for now I want a framework I can start building on, and then in the process figure out how to make it distinctive enough to be perceived as a web app as well as looking like a native iPhone application.
Specifically I'm looking for features like:
- stylesheets set up, or pointers to how to do them for iPhone
- page flipping animation, ie. pick an item in a list, list scrolls out of view to the left and information for item scrolls in from the right
- the animation part would have to work with dynamic pages, ie. not just one big page that has divs set up for each sub-item, which at least one such framework had as a sort of quick fix, I would need to have list item picking load the page for that item, and then when loaded, scroll to it
Edit: To avoid people reading only the question and answering, before reading my other reply, I'll add my clarification for GPL licensing and similar issues here.
The framework I need to use can not be distributed under a license which would require me to license my own project out under a similar license. The GPL family of licenses allows for exceptions regarding library usage, but this won't apply to this since by necessity, the kind of framework I would need to use would be all source code.
The project can easily accomodate commercial libraries.
Also, I don't need a library or a framework as such, example files that look good and aren't overly obfuscated would be welcome as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
前几天我在 Google 代码上发现了 iphone-universal。 还没有机会尝试,但看起来很有希望。
I found iphone-universal on Google Code the other day. Haven't had a chance to try it out but it looks promising.
jQtouch 看起来很出色。
jQtouch looks outstanding.
iUI 库(最初由 Joe Hewitt 提供)将是一个不错的起点。 该库获得 BSD 许可,没有商业限制。
您正确地认为 iphone-universal 不适合您 --它实际上是根据 Affero GPL 获得许可的,只需通过网络访问该软件即可触发分发条款,这与标准 GPL 完全不同。
The iUI library, originally from Joe Hewitt, would be a good place to start. The library is BSD licensed and has no commercial restrictions.
You're right in assuming iphone-universal is not an option for you -- its actually licensed under Affero GPL which triggers the distribution clause simply by accessing the software over a network which is quite different to standard GPL.
我目前正在研究 http://webapp.net.free.fr/。 请在此处查看演示。 与提到的其他框架相比,它具有以下优点:
最后一点对我来说确实是赢家。 我正在考虑构建一些将包含在商业产品中的东西,因此其他框架,如 iphone-universal 和 iwebkit(均为 GPL)不是选择。
I'm currently looking into http://webapp.net.free.fr/. Check out the demo here. Compared to the other frameworks mentioned, it has the following advantages:
The last point was really the winner for me. I'm looking at building something that will be included in a commercial product, so the other frameworks like iphone-universal and iwebkit (both GPL) weren't options.
QuickConnectiPhone 是 LGPL,因此您可以按照您想要的方式使用它。 它有一个自定义的 Dashcode 项目,其中包含所需的文件。 它是高度模块化的。 如果您愿意,它甚至可以让您将 JavaScript、HTML 和 CSS 编译成可安装的应用程序。
http://sourceforge.net/projects/quickconnect/
有关详细信息,您可以查看http://tetontech.wordpress.com
QuickConnectiPhone is LGPL so you can use it the way you want. It has a custom Dashcode project that includes the needed files. It is highly modular. It will even let you compile your JavaScript, HTML, and CSS into an installable application if you want.
http://sourceforge.net/projects/quickconnect/
For more information you could look at http://tetontech.wordpress.com
尝试 iwebkit
http://iwebkit.net
这是一个演示:
http://m.iwebkit.net
Try iwebkit
http://iwebkit.net
Here is a demo:
http://m.iwebkit.net
这看起来不错,但不幸的是它是根据 GPLv3 获得许可的,所以我实际上有点害怕开始查看该代码。 我需要找到或开发(如果需要)的框架必须能够用作商业程序的一部分,而不必对整个程序进行不同的许可。 商业库很好,我只是还没有找到任何可以演示的库,大概是因为如果我愿意的话,我可以窃取所有代码。
我想我会进一步研究,但感谢您的链接。
编辑:澄清。 如果有人想要的话,我可以满足将 iPhone 的 Web 框架部分的源代码共享的要求,但由于这个框架都是源代码,我担心将其部分内容合并到现有的 Web 应用程序中(以为 iPhone 制作皮肤),我会让整个网络应用程序承担 GPL 许可证的责任,这是完全不可能的。 即使共享与 iPhone 页面相关的所有文件也是不可能的,因为它们将包含专有代码。
This looks good, but unfortunately it's being licensed under GPLv3, so I'm actually a bit afraid to start looking at that code. The framework I either need to find, or develop if needs be, must be able to be used as part of a commercial program, without having to license the entire program different. Commercial libraries are fine, I just haven't found any I can demo yet, presumably because I could just then steal all the code if I wanted to.
Guess I'll look further, thanks for the link though.
Edit: Clarification. I'd be fine with the requirement to share the source to the web framework part for the iPhone, if someone wanted it, but since this framework is all source, I'm afraid that incorporating bits of it into an existing web application (to make a skin for iPhone), I'd be making the whole web application liable for GPL license, which is totally out of the question. Even sharing all the files related to the iPhone pages is out of the question, since they will contain proprietary code.
我一直在研究 iUI,发现它相当不错,但说实话我没有看过许可模型,所以我不知道它是什么。 它非常简单直接,并且与 ASP.NET MVC 配合良好。
I've been mucking around with iUI, and find it quite good, but to be honest I haven't looked at the licencing model, so I've no idea what it is. It is very simple and straight forward though, and works well with ASP.NET MVC.
查看 iWebkit 6。 不过,它仅适用于 iOS 5 :(。
更新
您还可以使用 saurik 的。它没有你所说的所有功能,但我会尝试看看如何实现它们。另外,你说你想在它的基础上构建一个演示(saurik 删除了 cydia 的实际优秀部分。 .saurik.com)您可以在我的其他网站上使用我的。
为了避免传输所有这些图像,只需在标题中添加以下内容:
另外,将其添加到您的 CSS 中:
menutouched.png 位于:
js中的这个函数滑动页面。 它来自 Joe Hewitt 的 iUI 项目:
要加载下一页,您可以尝试执行 窗口.location 有延迟。 不过时间由你决定。
您还需要将其添加到您的 CSS 中:
Check out iWebkit 6. It works only on iOS 5, though :(.
UPDATE
You can also use saurik's. It doesn't have all of the features you said you wanted, but I'll try to see how to implement them. Also, you said you wanted to build on it. For a demo (saurik took down the actual good part of cydia.saurik.com) you can use mine on my other site.
To avoid transferring all those images, just add this in the header:
<link rel="stylesheet" type="text/css" href="http://cache.saurik.com/menes/style.css" />
also, add this to your CSS:
menutouched.png is here:
This function in js slides the page. It is from Joe Hewitt’s iUI project:
For loading the next page, you could try something like executing a window.location with a delay. The timing is up to you though.
You also need to add this to your CSS: