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.
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
Post a Comment