如何在iPhone上部署Web应用程序?

时间:2021-01-30 20:51:22

I have developed a website in asp.net for iPhone. Now I am stuck in how to deploy that site on the iphone?
Never done it before. How to make it iphone ready so the device can access the site ? Any ideas...

我已经在asp.net for iPhone中开发了一个网站。现在我被困在如何在iPhone上部署该网站?从来没有做过。如何使iphone准备就绪,以便设备可以访问该网站?有任何想法吗...

Thank you All.

谢谢你们。

2 个解决方案

#1


3  

Social Circus, as Mehrdad says you don't need to change anything to allow users with iPhones to access your site; iPhones use a mobile version of Safari that renders pretty much everything like a normal desktop browser. There are a few things worth noting however if you want iPhone users to have a good experience browsing your site:

社交圈,正如Mehrdad所说,你不需要改变任何东西以允许使用iPhone的用户访问你的网站; iPhone使用移动版Safari,几乎可以像普通的桌面浏览器一样呈现。但是,如果您希望iPhone用户拥有浏览您网站的良好体验,还有一些值得注意的事项:

  • No Flash. If you've used Flash at all in your site it won't work on iPhones (or most other mobile platforms).
  • 没有Flash。如果您在网站中使用过Flash,则无法在iPhone(或大多数其他移动平台)上使用。

  • The resolution of the iPhone is 320x480. The top and bottom bars will take off a minimum of 20+44 = 66 pixels. You could implement a CSS template that re-formated everything into 320 pixel width but this is a lot of work. See something like Google Mail in an iPhone browser for an example.
  • iPhone的分辨率为320x480。顶部和底部条纹将至少取消20 + 44 = 66像素。您可以实现一个CSS模板,将所有内容重新格式化为320像素宽度,但这需要做很多工作。例如,在iPhone浏览器中查看Google Mail等内容。

  • iPhone users will be able to add a shortcut to your webapp on their desktop, with a name they want, so the actual URL matters less from this perspective.
  • iPhone用户将能够在他们的桌面上添加他们想要的名称的webapp快捷方式,因此从这个角度来看,实际的URL很少。

  • Finally, it's worth noting that many iPhone users think of webapps as a bit "passe" - a bit old (man that's sooo 2008!). This isn't really fair but it's mostly true. With 65,000+ apps on the app store no-one's going around looking for webapps any more. For a better chance of adoption, especially if it's something like a game, perhaps look at using the SDK to write an iPhone-specific version? (quite a lot of work usually!!)
  • 最后,值得注意的是,很多iPhone用户都认为webapps有点“过时” - 有点老了(男人就是2008年!)。这不太公平,但大多数情况下都是如此。在应用程序商店中有65,000多个应用程序,没有人会继续寻​​找Web应用程序。为了更好的采用机会,特别是如果它像游戏一样,或许可以使用SDK来编写特定于iPhone的版本? (通常很多工作!!)

Hope that helps

希望有所帮助

#2


5  

Copy the stuff to the Web server, setup the databases if necessary, just as you'd do for a Web app designed for desktop browsers. Is this a real question?

将内容复制到Web服务器,必要时设置数据库,就像为桌面浏览器设计的Web应用程序一样。这是一个真正的问题吗?

#1


3  

Social Circus, as Mehrdad says you don't need to change anything to allow users with iPhones to access your site; iPhones use a mobile version of Safari that renders pretty much everything like a normal desktop browser. There are a few things worth noting however if you want iPhone users to have a good experience browsing your site:

社交圈,正如Mehrdad所说,你不需要改变任何东西以允许使用iPhone的用户访问你的网站; iPhone使用移动版Safari,几乎可以像普通的桌面浏览器一样呈现。但是,如果您希望iPhone用户拥有浏览您网站的良好体验,还有一些值得注意的事项:

  • No Flash. If you've used Flash at all in your site it won't work on iPhones (or most other mobile platforms).
  • 没有Flash。如果您在网站中使用过Flash,则无法在iPhone(或大多数其他移动平台)上使用。

  • The resolution of the iPhone is 320x480. The top and bottom bars will take off a minimum of 20+44 = 66 pixels. You could implement a CSS template that re-formated everything into 320 pixel width but this is a lot of work. See something like Google Mail in an iPhone browser for an example.
  • iPhone的分辨率为320x480。顶部和底部条纹将至少取消20 + 44 = 66像素。您可以实现一个CSS模板,将所有内容重新格式化为320像素宽度,但这需要做很多工作。例如,在iPhone浏览器中查看Google Mail等内容。

  • iPhone users will be able to add a shortcut to your webapp on their desktop, with a name they want, so the actual URL matters less from this perspective.
  • iPhone用户将能够在他们的桌面上添加他们想要的名称的webapp快捷方式,因此从这个角度来看,实际的URL很少。

  • Finally, it's worth noting that many iPhone users think of webapps as a bit "passe" - a bit old (man that's sooo 2008!). This isn't really fair but it's mostly true. With 65,000+ apps on the app store no-one's going around looking for webapps any more. For a better chance of adoption, especially if it's something like a game, perhaps look at using the SDK to write an iPhone-specific version? (quite a lot of work usually!!)
  • 最后,值得注意的是,很多iPhone用户都认为webapps有点“过时” - 有点老了(男人就是2008年!)。这不太公平,但大多数情况下都是如此。在应用程序商店中有65,000多个应用程序,没有人会继续寻​​找Web应用程序。为了更好的采用机会,特别是如果它像游戏一样,或许可以使用SDK来编写特定于iPhone的版本? (通常很多工作!!)

Hope that helps

希望有所帮助

#2


5  

Copy the stuff to the Web server, setup the databases if necessary, just as you'd do for a Web app designed for desktop browsers. Is this a real question?

将内容复制到Web服务器,必要时设置数据库,就像为桌面浏览器设计的Web应用程序一样。这是一个真正的问题吗?