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

Reply
 
LinkBack Thread Tools Display Modes
Old 01-10-2011, 02:04 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 2
hanslowsoftware is on a distinguished road
Exclamation m:61:0 Expected expression before '<'

Help im getting a error for line 61 and line 66
m:61:0 Expected expression before '<'

59 - (NSInteger)numberOfSectionsInTableViewUITableVie w *)tableView {
60 // Return the number of sections.
61 return <#number of sections#>;
62}
63- (NSInteger)tableViewUITableView *)tableView 64numberOfRowsInSectionNSInteger)section {
65 // Return the number of rows in the section.
66 return <#number of rows in section#>;
}
hanslowsoftware is offline   Reply With Quote
Old 01-10-2011, 02:08 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

What is this supposed to be "<#number of rows in section#>"?! As the method declaration indicates, you are supposed to return an integer value.
baja_yu is offline   Reply With Quote
Old 01-15-2011, 08:13 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 2
hanslowsoftware is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
What is this supposed to be "<#number of rows in section#>"?! As the method declaration indicates, you are supposed to return an integer value.

I cant figure out?
hanslowsoftware is offline   Reply With Quote
Old 01-15-2011, 08:44 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

I'm not sure how to explain it to you as it as basic as it gets. The first method is fired when the tableview is asking for the number of sections. You need to access your model and return the right number. For example, if you had an array containing all the sections called sectionsArray, you would do: return [sectionsArray count]
Similarly in the second method, you are supposed to return the number of rows for the section. This method will fire as many times as you told it there are sections in the table. How exactly you return the numbers depends on your data model.

Maybe you should read the Table View Programming Guide from the documentation: http://developer.apple.com/library/i...ewsiPhone.html
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Tags
app, error, m61

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: 353
9 members and 344 guests
7twenty7, blueorb, fredidf, iAppDeveloper, iGamesDev, Mah6447, mottdog, sacha1996, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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