移动网络开发的目标c

时间:2020-11-25 20:07:52

Is it possible to develop a mobile web application using objective-c? I've already search the net and know that c++, c# and java could be used in web development. Is there any expert or programmer that have already experience coding a website using objective-c. If so how different it is compare to PHP Script language.

是否可以使用objective-c开发移动Web应用程序?我已经在网上搜索并知道c ++,c#和java可以用于web开发。是否有任何专家或程序员已经使用objective-c编写网站编码。如果是这样,与PHP Script语言相比有多么不同。

update: I'm trying to create a mobile web application for ios devices. like fb, youtube, twitter.

更新:我正在尝试为ios设备创建移动Web应用程序。像fb,youtube,twitter。

3 个解决方案

#1


1  

You could try Frothkit

你可以试试Frothkit

It is a Objective-C web application framework that brings the power and simplicity of Cocoa development to the web.

它是一个Objective-C Web应用程序框架,它将Cocoa开发的强大功能和简单性带到了Web上。

While froth web apps are technically deployable on many different platforms using Cocotron, currently our focus has been on the Amazon EC2 cloud.

虽然泡沫网络应用程序在技术上可以使用Cocotron在许多不同平台上部署,但目前我们的重点是亚马逊EC2云。

Benefits of Froth

泡沫的好处

  • Uses the tools and language Mac and iPhone developers have come to know and love.
  • 使用Mac和iPhone开发人员已经了解和喜爱的工具和语言。

  • Reuse existing objc/c code from desktop applications.
  • 从桌面应用程序重用现有的objc / c代码。

  • Simple view templating support.
  • 简单的视图模板支持。

  • Very fast and scalable.
  • 非常快速和可扩展。

  • Affordable hosting on Amazon EC2 Cloud.
  • 亚马逊EC2云上经济实惠的托管服务。

  • Multiple builds and deployments using standard Xcode deployments.
  • 使用标准Xcode部署进行多次构建和部署。

Simple Example

@interface WAHelloController : WebActiveController {
}

// http://myexample.com/hello
- (id)helloAction:(WebRequest*)req;

// http://example.com/goodbye
- (id)goodbyeAction:(WebRequest*)req;

@end


@implementation WAHelloController

- (id)helloAction:(WebRequest*)req {
        return @"Hello World";
}

- (id)goodbyeAction:(WebRequest*)req {
        return @"Goodbye";
}

@end

Reference

#2


0  

I'm not sure exactly what you want to do but:

我不确定你想要做什么但是:

  1. You can run a web site on obj-c (as opposed to, say, Cake PHP or Ruby on Rails), which could run a social network accessible from all kinds of browsers, and offering REST APIs and all that jazz. If you're super hot on Obj-C but not much else, I suppose this might be a good idea.

    您可以在obj-c上运行一个网站(而不是像Cake PHP或Ruby on Rails),它可以运行可从各种浏览器访问的社交网络,并提供REST API和所有爵士乐。如果你对Obj-C超级热,但不是很多,我想这可能是一个好主意。

  2. You can run a web server on an iOS device, I guess if you want a site on your wifi network.

    您可以在iOS设备上运行Web服务器,我想如果您想在您的wifi网络上建立一个站点。

  3. You can run a web server, using whatever framework and server you like, that makes web sites that can be added to the homescreen, kind of like native apps. I think this is what you are actually asking about. This wouldn't need to use objective-c at all.

    您可以使用您喜欢的任何框架和服务器来运行Web服务器,从而使网站可以添加到主屏幕,就像本机应用程序一样。我想这就是你实际要问的问题。这根本不需要使用objective-c。

#3


0  

From your update you are implying you ae trying to create an application for iOS that primarily accesses a website?

从您的更新中您是否暗示您正在尝试为主要访问网站的iOS创建应用程序?

Then of course you can use Objective-C

然后你当然可以使用Objective-C

If you want to make a web page and wrap it into an application you should look into PhoneGap - that being said I'm not sure if you can publish phone gap applications to the app store currently.

如果你想制作一个网页并将其包装到一个应用程序中,你应该查看PhoneGap - 据说我不确定你是否可以将手机间隙应用程序发布到当前的应用程序商店。

PhoenGap will wrap a mobile website into an iOS container.

PhoenGap将移动网站包装到iOS容器中。

objectice c is fine of the client but if you really want to write something maintainable for the server I would stay away from Obj-c and use something more common.

objectice c很好的客户端,但如果你真的想写一些可维护的服务器,我会远离Obj-c并使用更常见的东西。

#1


1  

You could try Frothkit

你可以试试Frothkit

It is a Objective-C web application framework that brings the power and simplicity of Cocoa development to the web.

它是一个Objective-C Web应用程序框架,它将Cocoa开发的强大功能和简单性带到了Web上。

While froth web apps are technically deployable on many different platforms using Cocotron, currently our focus has been on the Amazon EC2 cloud.

虽然泡沫网络应用程序在技术上可以使用Cocotron在许多不同平台上部署,但目前我们的重点是亚马逊EC2云。

Benefits of Froth

泡沫的好处

  • Uses the tools and language Mac and iPhone developers have come to know and love.
  • 使用Mac和iPhone开发人员已经了解和喜爱的工具和语言。

  • Reuse existing objc/c code from desktop applications.
  • 从桌面应用程序重用现有的objc / c代码。

  • Simple view templating support.
  • 简单的视图模板支持。

  • Very fast and scalable.
  • 非常快速和可扩展。

  • Affordable hosting on Amazon EC2 Cloud.
  • 亚马逊EC2云上经济实惠的托管服务。

  • Multiple builds and deployments using standard Xcode deployments.
  • 使用标准Xcode部署进行多次构建和部署。

Simple Example

@interface WAHelloController : WebActiveController {
}

// http://myexample.com/hello
- (id)helloAction:(WebRequest*)req;

// http://example.com/goodbye
- (id)goodbyeAction:(WebRequest*)req;

@end


@implementation WAHelloController

- (id)helloAction:(WebRequest*)req {
        return @"Hello World";
}

- (id)goodbyeAction:(WebRequest*)req {
        return @"Goodbye";
}

@end

Reference

#2


0  

I'm not sure exactly what you want to do but:

我不确定你想要做什么但是:

  1. You can run a web site on obj-c (as opposed to, say, Cake PHP or Ruby on Rails), which could run a social network accessible from all kinds of browsers, and offering REST APIs and all that jazz. If you're super hot on Obj-C but not much else, I suppose this might be a good idea.

    您可以在obj-c上运行一个网站(而不是像Cake PHP或Ruby on Rails),它可以运行可从各种浏览器访问的社交网络,并提供REST API和所有爵士乐。如果你对Obj-C超级热,但不是很多,我想这可能是一个好主意。

  2. You can run a web server on an iOS device, I guess if you want a site on your wifi network.

    您可以在iOS设备上运行Web服务器,我想如果您想在您的wifi网络上建立一个站点。

  3. You can run a web server, using whatever framework and server you like, that makes web sites that can be added to the homescreen, kind of like native apps. I think this is what you are actually asking about. This wouldn't need to use objective-c at all.

    您可以使用您喜欢的任何框架和服务器来运行Web服务器,从而使网站可以添加到主屏幕,就像本机应用程序一样。我想这就是你实际要问的问题。这根本不需要使用objective-c。

#3


0  

From your update you are implying you ae trying to create an application for iOS that primarily accesses a website?

从您的更新中您是否暗示您正在尝试为主要访问网站的iOS创建应用程序?

Then of course you can use Objective-C

然后你当然可以使用Objective-C

If you want to make a web page and wrap it into an application you should look into PhoneGap - that being said I'm not sure if you can publish phone gap applications to the app store currently.

如果你想制作一个网页并将其包装到一个应用程序中,你应该查看PhoneGap - 据说我不确定你是否可以将手机间隙应用程序发布到当前的应用程序商店。

PhoenGap will wrap a mobile website into an iOS container.

PhoenGap将移动网站包装到iOS容器中。

objectice c is fine of the client but if you really want to write something maintainable for the server I would stay away from Obj-c and use something more common.

objectice c很好的客户端,但如果你真的想写一些可维护的服务器,我会远离Obj-c并使用更常见的东西。