Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 11-01-2011, 02:18 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 3
landmine is on a distinguished road
Unhappy how can i Displaying List in an Array ?

i have addressbook in that i have created some contacts in that i have entered 5 contacts in which i have entered phonenumbers
1st contact- one phone number
2nd contact- two phone number
3rd contact- three phone number
4th contact- no phone number
5th contact- no phone number

while i am getting this phone numbers i am storing in NSMutableArray n from that array i want to print that phone numbers in 3 UILabels which i have ceated in a view

while i am trying to print three contacts in three labels

alabel.text=[contactslist objectatindex:0];
ababel.text=[contactslist objectatindex:1];
clabel.text=[contactslist objectatindex:2];

while prinitng i am getting NSRangeException error...in some contacts i have one or two or null

so how can i print this array with all conditions satisfy for one or two or no contacts

please send me the code which will satisfy these conditions..


thanks in advance....
landmine is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,963
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:15 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0