This tutorial shows how to import your gmail contacts into your iPhone running iOS 5 or 6. Since it is no longer just a matter of settings, you must now setup a CardDAV account on the phone then import the gmail contacts over SSL.
But what is nice about this is that the contacts are synched with your online Google contacts. So any contact that you add on your phone, will instantly be synched with the contacts within your Gmail account, with almost no delay.
You'll notice that even though you've installed your gmail account on your iPhone, for some reason, you do not have access to your gmail contacts. In iOS 4 email contacts were instantly included in your contacts list. I can only assume it's either due to the Apple/Google battle going on right now or because it is now more secure to have the email accounts and contacts separate (Hence the SSL encryption). All native google functionality has been removed from the iPhone. Most notably the Google Maps app.
With this tutorial, I am assuming that you already have your Gmail account installed and running. When you begin working on this tutorial, you will be adding a completely separate "Contacts" account which will add a new GROUP to your "Contacts" app. So please understand that this will not duplicate your current Gmail settings.
1. Go into "Settings"
2. Click on "Mail, Contacts, & Calendars"
3. At the bottom of the list of email accounts, choose "Add account"
4. At the bottom of the list of different email services, choose "Other"
5. Choose, "Add CardDAV Account"
On the CardDAV Screen:
Server: "google.com" (write it without the quotations)
User Name: add your email account (without @gmail.com)
Password: add your gmail password
Description: (Give it something recognizable) "Gmail Contacts" (or if you have multiple accounts name it after the email address)
The "Description" will be used to distinguish this list within your "Contacts" app.
6. Hit "Next"
Once you finish the 6 steps above, go into your "Contacts" app, and you'll notice that there is a new "Groups" button (however this may already have been there depending on how your phone was set up before).
Click on "Groups."
You'll notice that there is a new group with the title that you just gave your Google Contacts.
To add a new contact, just do as you normally would when adding any new contact within iOS.
Then when you go online, you will instantly see the new contact on your online Gmail contacts.
Visit my blog for more great Apple and iOS tutorials.