ios - Google Calendar JSON feed to TableView -


I currently have a JSON feed from a Google calendar that can be found

I received it I've done the event title and start date my only problem in a table view is that I can not know how to group events according to date.

For example, yesterday I have 3 programs.

  • 10 o'clock - appointment of doctor
  • 3 o'clock - football
  • 9 o'clock - John's party
  • NSString and a NSArray . I currently use the following code to set my object.

      NSMutableArray * objectArray = [NSMutableArray alloc] init]; << Code>  

    I calculate my jsonDictionary

      [object array add object: [Event Settlement: [JasonDen ObjectForcae: @ "Feeds"] ObjectForchy: @ "Entry"] ObjectAboutEx: IDX] ObjectForrechy: @ "Headline"] Manfurky: @ "$ T"] with Dentator: [JasonDen ObjectForreaky: @ "Feed"] ObjectForreqi: @ "Entry"] ObjectAntindex : IDX] ObjectForreake: @ "Gd $ when"] ObjectOutand: 0]]];  

    Thanks.

    If you make your model correct, then the table view will naturally follow the appropriate model day There is an array of objects that each has a date and an array of events. Then your number of sections responds to

      returning quotes;  

    and the number of your rows in section replies

      day object * days = self-pay [section]; Return day. Events quote;  

    And there is an event on an index path:

      EventObject * event = self.days [indexPath.section] .events [indexPath.row];  

    Comments

    Popular posts from this blog

    java - org.apache.http.ProtocolException: Target host is not specified -

    java - Gradle dependencies: compile project by relative path -

    ruby on rails - Object doesn't support #inspect when used with .include -