ios - 如何使用 gdata 检索谷歌日历事件的描述?
<p><p>我正在使用 objective-c中的 gdata 库为 iphone 应用程序检索谷歌日历事件,我正在这样做,</p>
<pre><code>- (void)eventsTicket:(GDataServiceTicket *)ticket finishedWithEntries:(GDataFeedCalendarEvent *)feed error:(NSError *)error
{
if( !error ){
NSMutableDictionary *dictionary;
for( int section=0; section<; section++ ){
NSMutableDictionary *nextDictionary = ;
GDataServiceTicket *nextTicket = ;
if( nextTicket==ticket ){ // We've found the calendar these events are meant for...
dictionary = nextDictionary;
break;
}
}
if( !dictionary )
return; // This should never happen.It means we couldn't find the ticket it relates to.
int count = [ count];// count for the number of events for the callendar
//099999999999999999999999999999999966666666666666669999999999999999999999999666666666666666699999999999999999999999999999999999999999999999999999999999
daily_trackAppDelegate *controller =(daily_trackAppDelegate *) [ delegate];
NSMutableArray *events = ;
for( int i=0; i<count; i++ ){
objectAtIndex:i]];//loads the array with events
}
for( int i=0; i<count; i++ ){
NSMutableArray *temporary=[init];
;
GDataEntryCalendarEvent *event = ;
//;
GDataWhen *when = [] objectAtIndex:0];
if( when ){
NSDate *date1 = [ date];
NSDate *date = ;
NSDateFormatter *dateFormatter = [ init];
;
;///1 date
NSDate *date11=[ date];
NSDate *date2 = ;
// ;///2 date
;///1 date
;
}
// stringValue] atIndex:i];/////3 title
stringValue]];///1 date
GDataWhere *addr = [ objectAtIndex:0];
if( addr )
// atIndex:i];///// 4 location
];
;///// 4 location
}
NSURL *nextURL = [ URL];
if( nextURL ){ // There are more events in the calendar...Fetch again. FETCHING*********************************
GDataServiceTicket *newTicket = ; // Right back here...
// Update the ticket in the dictionary for the next batch.
;
}
} else
;
}
</code></pre>
<p>现在我在这里检索事件的开始和结束时间、标题、位置等,但我也想检索事件的描述,这意味着如果用户在创建事件时输入任何描述,所以在这种情况下我我也想检索那个描述或事件的详细信息,我努力但没有成功。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>事件的描述可以作为 [ stringValue]</p></p>
<p style="font-size: 20px;">关于ios - 如何使用 gdata 检索谷歌日历事件的描述?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/7709443/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/7709443/
</a>
</p>
页:
[1]