Reputation: 2569
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.
update: I'm trying to create a mobile web application for ios devices. like fb, youtube, twitter.
Upvotes: 2
Views: 420
Reputation: 27285
From your update you are implying you ae trying to create an application for iOS that primarily accesses a website?
Then of course you can use 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.
PhoenGap will wrap a mobile website into an iOS container.
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.
Upvotes: 0
Reputation: 32320
You could try Frothkit
It is a Objective-C web application framework that brings the power and simplicity of Cocoa development to the web.
While froth web apps are technically deployable on many different platforms using Cocotron, currently our focus has been on the Amazon EC2 cloud.
Benefits of Froth
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
Upvotes: 1
Reputation: 535
I'm not sure exactly what you want to do but:
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.
You can run a web server on an iOS device, I guess if you want a site on your wifi network.
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.
Upvotes: 0