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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 10-28-2009, 07:24 AM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 23
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
Old 02-25-2010, 07:53 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 18
Default Same Thing

I am looking to do the same thing. Anyone have any ideas or direction they could share?
iphonedave is offline   Reply With Quote
Reply

Bookmarks

Tags
table view sections, uitableview, xml

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: 258
21 members and 237 guests
ADY, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, glenn_sayers, HemiMG, jakerocheleau, JasonR, LEARN2MAKE, nobre84, prchn4christ, Rudy, ryantcb, Speed, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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