gpt4 book ai didi

iphone - 使用 GDATA Objective C 库将字符串插入电子表格单元格

转载 作者:行者123 更新时间:2023-11-29 13:44:48 26 4
gpt4 key购买 nike

我正在尝试使用 GDATA Objective C 库将字符串值插入电子表格单元格。这就是我尝试的方式。

NSArray *entries = [mEntryFeed entries];
GDataEntrySpreadsheetCell *entry = [entries objectAtIndex:0];
GDataSpreadsheetCell *cell = [entry cell];
[cell setInputString:@"ABC"];
[cell setResultString:@"ABC"];

问题是: 此方法不会更新谷歌电子表格。如何将更改保存到实际电子表格?我错过了什么?

最佳答案

我能够解决问题

// Posting Changes
[service fetchFeedWithQuery:querySpreadsheet completionHandler:
^(GDataServiceTicket *ticket, GDataFeedBase *feed, NSError *error) {

GDataEntrySpreadsheetCell *entry = [[feed entries] objectAtIndex:0];

GDataSpreadsheetCell *cell = [entry cell];

[cell setInputString:@"ABC"];

//NSLog(@"FEED %@" , [[feed entries] objectAtIndex:0]);

ticket = [service fetchEntryByInsertingEntry:entry
forFeedURL:feedURL
delegate:nil
didFinishSelector:nil];
}];

关于iphone - 使用 GDATA Objective C 库将字符串插入电子表格单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7816997/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com