是否可以使用 googledrive://或 googlesheets://URL 方案链接到适用于 iOS 的表格应用中的特定子表格?
使用浏览器中显示的 URL 和查询字符串参数 (gid=) 似乎并不能解决问题。
最佳答案
很遗憾,没有使用 url 方案打开特定子表的选项
要在适用于 iOS 的 Google 表格应用中打开特定表格,您可以使用 Google 表格的 URL 方案 (googlesheets://)。在最后一个斜杠后插入特定工作表的 URL 地址。
在 Safari 中
googlesheets://https://docs.google.com/spreadsheets/d/...
Objective-C 代码
NSString *url = @"https://docs.google.com/spreadsheets/d/...";
NSString *string = [NSString stringWithFormat:@"googlesheets://%@",url];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:string]];
Swift代码
let url = "https://docs.google.com/spreadsheets/d/..."
let string = NSURL(string : "googlesheets://\(url)")
UIApplication.sharedApplication().openURL(string!)
如果你只想打开一个特定的工作表,这将有效 😊
关于ios - 使用 googledrive url scheme 和 iOS Sheets App 打开特定的 Google Sheet 子表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25954079/