Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Xcode for developing web pages

Tags:

editor

xcode

ide

I want to know if I can develop a web page in Xcode.

If yes, how?

What is the main difference between a normal web page and a web page for an iPhone, iPod, or iPad? Where should I start?

like image 936
Iqbal Khan Avatar asked Mar 25 '11 05:03

Iqbal Khan


People also ask

Can we use Xcode for web development?

So the answer is yes, Xcode can be used as a web IDE. It's probably not the best web IDE, and it's probably lacking a lot of the features and conveniences that professional web developers rely on. But it works in a pinch, especially for mobile developers who are already accustomed to Xcode.

Does Xcode support HTML?

Answer: A: Xcode's purpose is not as an HTML/CSS development tool. It understands C/C++/Objective-C/Objective-C++, and all other language text is treated as dumb text. Other editors such as Sublime Text, and Textastic are not only HTML/CSS aware, but include support for Emmet.

Can Xcode be used for JavaScript?

Xcode is an Objective-C and Swift IDE, used primarily for iOS and MacOS development. It has no inherent JavaScript support, and while there may be some way to do iOS development in JS, it almost certainly requires a secondary piece of software to compile JS into one of the languages Xcode supports.


2 Answers

You can indeed write web pages with Xcode. I was able to do so by creating a new empty project, then creating a new file in it with a .html extension. Ready to go.

There is no real difference between webpages for normal browsers and iOS devices. Webpages for iOS devices may have special meta tags changing the viewport and rely on WebKit-specific things, but there's no significant difference.

If you already know HTML, you may want to start at http://developer.apple.com/safari.

As for dynamic web pages, yes, of course. Again, it's not that different from developing dynamic web pages for normal browsers.

like image 134
icktoofay Avatar answered Sep 29 '22 18:09

icktoofay


No, use DashCode for developing iphone web apps. See Mobile Safari Web Application Tutorial for more info.

like image 35
Kirby Todd Avatar answered Sep 29 '22 18:09

Kirby Todd