Note that there are some explanatory texts on larger screens.

plurals
  1. POios Add Event to google calendar
    primarykey
    data
    text
    <p>I have searching how to add event t users google calendar. In my project I have database with events(title,startDate,endDate etc). When user clicks sync button all this events should be add to users google calendar. </p> <p>I downloaded api from <a href="http://code.google.com/p/google-api-objectivec-client/source/browse/#svn/trunk/Examples/CalendarSample" rel="nofollow noreferrer">here</a>. But its for MAC OS. Since I never worked on MAC OS application I cant understand how to use it in IOS app. </p> <p>Please help me and tell which view controller to use asking for username and password, then login to google calendar service and add event in it.</p> <p>Thank you. </p> <p>I got <a href="http://code.google.com/p/google-api-objectivec-client/" rel="nofollow noreferrer">http://code.google.com/p/google-api-objectivec-client/</a>. But its difficult to understand. It takes username and password from preferences. Then gets calendars and adds events, but to add we need ticket and some more things. This code did some things.</p> <p>In their add event method I wrote my own event object and tried to add that, but its not working. Here is the code:</p> <pre><code>- (void)insertCalendarEvent:(GDataEntryCalendarEvent *)event toCalendar:(GDataEntryCalendar *)calendar { NSLog(@"adding event"); GDataDateTime *time = [GDataDateTime dateTimeWithDate:[NSDate date] timeZone:(NSTimeZone*)[NSTimeZone timeZoneForSecondsFromGMT:0]]; GDataEntryCalendarEvent *newEntry = [GDataEntryCalendarEvent calendarEvent]; [newEntry setTitleWithString:@"title"]; [newEntry addLocation:[GDataWhere whereWithString:@"pune"]]; [newEntry addTime:[GDataWhen whenWithStartTime:time endTime:time]]; [googleCalendarService fetchEntryByInsertingEntry:newEntry forFeedURL:[[calendar alternateLink] URL] delegate:self didFinishSelector:@selector( insertTicket:finishedWithEntry:error: )]; } </code></pre> <p>My requirement is simple. I just want add my custom events to google calendar. Get calendar, get ticket, and in for loop add all my events.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload