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 Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2011, 11:57 PM   #1 (permalink)
Registered Member
 
jimmy's Avatar
 
Join Date: Aug 2010
Posts: 52
jimmy is on a distinguished road
Default Table NumberOfRowsInSection error

- (NSInteger)numberOfSectionsInTableViewUITableVie w *)tableView {
// Return the number of sections.
return 2;

}

- (NSInteger)tableViewUITableView *)tableView numberOfRowsInSectionNSInteger)section {

if (section == 0) return [sentData count]-1;
if ( section == 1 ) return[tableTestData count];
}

I have 2 Section and 2 Array Data.For the first section i am not able to get the actual number of Row in section from the first Array.I have to -1 the Array to list the Row in first section.Why is that?
jimmy is offline   Reply With Quote
Old 03-04-2011, 08:51 AM   #2 (permalink)
You win again, gravity!
 
reficul's Avatar
 
Join Date: Feb 2011
Location: Alta, Norway
Age: 38
Posts: 166
reficul is on a distinguished road
Default

How do you populate your sentData array?
__________________
If you really want something in this life you have to work for it. Now quiet, they're about to announce the lottery numbers.

Homer J Simpson
reficul is offline   Reply With Quote
Old 03-06-2011, 09:12 PM   #3 (permalink)
Registered Member
 
jimmy's Avatar
 
Join Date: Aug 2010
Posts: 52
jimmy is on a distinguished road
Default

Quote:
Originally Posted by reficul View Post
How do you populate your sentData array?
Sent Data is an Array plist with Dictionary values on it.

for Populating:
if (indexPath.section == 0){
SentData array

}
else{
TableData Array;
}

is something wrong with this code?
jimmy is offline   Reply With Quote
Reply

Bookmarks

Tags
array problem, table issue, table row error

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
» Online Users: 402
19 members and 383 guests
Brandt, coolman, Domele, Droverson, Duncan C, fredidf, Free App Monster, givensur, iAppDeveloper, jbro, locombiano89, Mah6447, Meoz, simplymuzik3, SLIC, stanny, stevenkik, Tomsky, WeaselPig
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,646
Threads: 94,111
Posts: 402,863
Top Poster: BrianSlick (7,990)
Welcome to our newest member, locombiano89
Powered by vBadvanced CMPS v3.1.0

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