Design your website that comptible with iPhone

Design your web­site that comptible with iPhone

The present world is run­ning in mobile phones than the com­put­ers. Nowa­days all types of mobile phones pro­vid­ing max­i­mum func­tion­al­i­ties browsing,chat, mobile office and many. It works as like autumn com­put­ers. So it became nec­es­sary to the web design­ers to devel­oper their sites com­pat­i­ble with the mobile phones. Most of the social net­work­ing designed their sites fro mobile phones too. And they pro­vid­ing the sep­a­rate web address for mobile brows­ing www.m.domainname.com like this.

Some of the sites load their sites in the same address but loads the css design accord­ing to model of the mobile phones from which the user access­ing the site. www.gmail.com changes the design accord­ing to the model of the phone.

Here just we going to see how to develop a site that com­pat­i­ble for iPhone.

Some great thing in all apple prod­ucts is, apple itself pro­vides all kind of APIs for all kind of func­tion­al­i­ties. They won’t depends on third party soft­wares or libraries. For the css design and html design for iPhone apple itself gave one library  “iUI Library” which con­sist of iPhone.css. This css takes care of your html ele­ments and shapes them accord­ing to the iPhone UI. There are set of some rules to be fol­lowed and some div to be added to get the design as like iPhone components.

At first just get down­load the iPhone.css

add the style sheet in your html code

1.The below code to set the title of the page in iPhone browser header.

<html>

<head>

<meta http-equiv=“content-type” con­tent=“text/html; charset=utf-8″ />

<meta id=“view­port” name=“view­port” con­tent=“width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;” />

<title>Your Header</title>

<link rel=“stylesheet” href=“iphone.css” />

</head>

<body>

</body>

</html>

title

Title of the page

2. As like the com­po­nent UINav­i­ga­tion­Bar in iPhone Native App we can get the same bar header in our html itself.

You can find some images  that are needed to make the look and feel of our site as like iPhone Native App  here.

Add this images folder in root of your html document.

add this code below at start­ing of the tag “body”

<div id=“header”>

<h1>Nav­i­ga­tion Bar</h1>

</div>

Navigation Bar

Nav­i­ga­tion Bar

3. As like list in nor­mal html we dis­plays the set of items one by one. The mostly used view in iPhone is UITable­View. It is used to dis­play the list of items, we can check­mark it, select it,delete it.The items in the table called as cells. Each cell has their own property.

Way to make our list appear as like table in iPhone.

<ul>

<li>Sim­ple Item</li>

<li class=“arrow”><a href=”#”>With Arrow</a></li>

<li><small>new!</small><a href=”#”>With Badge</a></li>

<li><a href=”#”><img src=“images/list-icon-5.png” class=“ico” /> With Icon</a></li>

</ul>

Table List

Table List

There are as many sam­ples pro­vided in the iUIKit. You can try them all by down­load­ing the iUIKit from here.

Filed Under: All Coupons

About the Author:

RSSComments (2)

Leave a Reply | Trackback URL

  1. ANGEL says:

    PillSpot.org. Cana­dian Health&Care.No pre­scrip­tion online pharmacy.Special Inter­net Prices.PillSpot.org. Herbal-supplements@buy.online" rel="nofollow">.…

    Cat­e­gories: Men­tal HealthStomach.Eye Care.Antidiabetic.Anti-allergic/Asthma.Blood Pressure/Heart.Antidepressants.Stop Smok­ing­Wom­ens Health.Weight Loss.Pain Relief.Vitamins/Herbal Supplements.Mens Health.Skin Care.Antibiotics.Anxiety/Sleep Aid.Anti…

  2. JESSIE says:


    Medicamentspot.com. Cana­dian Health&Care.Special Inter­net Prices.No pre­scrip­tion online pharmacy.Best qual­ity drugs. High qual­ity pills. Buy pills online

    Buy:Nymphomax.Lipitor.Acomplia.Benicar.Female Pink Viagra.Amoxicillin.Prozac.Cozaar.Zetia.Female Cialis.Advair.Wellbutrin SR.SleepWell.Aricept.Ventolin.Seroquel.Lasix.Zocor.Lipothin.Buspar.…

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.