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

View Single Post
Old 10-28-2009, 06:24 AM   #1 (permalink)
MattTrout
Registered Member
 
Join Date: May 2009
Posts: 23
MattTrout is on a distinguished road
Unhappy Populating Sections in UITableview from XML File

I have a small problem I need pointed in the right direction with. I have an XML file that I am using to populate a Tableview with. It is setup like the following example....

Code:
<Schedule>
   <Month name="October 2009">
      <Game>
          <Date>
          <HomeTeam>
          <AwayTeam>
          <Time>
          <Result>
      </Game>
   </Month>
   <Month name="November 2009">
      <Game>
          <Date>
          <HomeTeam>
          <AwayTeam>
          <Time>
          <Result>
      </Game>
   </Month>
</Schedule>
I can populate the table fine with all the <Game> nodes fine and I can also create the array of <Month> objects, but when I have

Code:
return [months count];
under numberOfSectionsInTableView method the app crashes.

How can I tell the Tableview to create a new section with the month name and then populate it with it's children? I'm semi new, but having a tough time getting this to work. Help always appreciated! Thanks!
MattTrout is offline   Reply With Quote
 

» Advertisements
» Online Users: 552
17 members and 535 guests
.Snipe, Batman, Bertrand21, chiataytuday, daunmi, fugufish, GHuebner, givensur, GraffitiCircus, HemiMG, HowEver, jasonqg49, k2c, mariano_donati, Newbie123, tommiss12
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,318
Threads: 93,987
Posts: 402,405
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Libera
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:37 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.