Is it possible to link to a specific sub-sheet in the Sheets app for iOS using the googledrive:// or googlesheets:// URL scheme?
是否可以使用googledrive://或googlesheets:// URL方案链接到iOS的Sheets应用中的特定子表?
Using the URL and querystring parameter (gid=) displayed in the browser doesn't seem to do the trick.
使用浏览器中显示的URL和查询字符串参数(gid =)似乎没有办法。
1 个解决方案
#1
0
There is unfortunately no options to open a specific sub-sheet using the url scheme
遗憾的是,没有选项可以使用url方案打开特定的子表
To open a specific sheet in the Google Sheet app for iOS you can use the URL scheme for Google Sheets (googlesheets://). Insert the URL address for the specific sheet after the last slash.
要在适用于iOS的Google Sheet应用中打开特定工作表,您可以使用Google表格的网址方案(googlesheets://)。在最后一个斜杠后插入特定工作表的URL地址。
In Safari
googlesheets://https://docs.google.com/spreadsheets/d/...
Objective-C code
NSString *url = @"https://docs.google.com/spreadsheets/d/...";
NSString *string = [NSString stringWithFormat:@"googlesheets://%@",url];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:string]];
Swift code
let url = "https://docs.google.com/spreadsheets/d/..."
let string = NSURL(string : "googlesheets://\(url)")
UIApplication.sharedApplication().openURL(string!)
This will work if you only want to open a specific sheet ????
如果您只想打开特定的工作表,这将有效
#1
0
There is unfortunately no options to open a specific sub-sheet using the url scheme
遗憾的是,没有选项可以使用url方案打开特定的子表
To open a specific sheet in the Google Sheet app for iOS you can use the URL scheme for Google Sheets (googlesheets://). Insert the URL address for the specific sheet after the last slash.
要在适用于iOS的Google Sheet应用中打开特定工作表,您可以使用Google表格的网址方案(googlesheets://)。在最后一个斜杠后插入特定工作表的URL地址。
In Safari
googlesheets://https://docs.google.com/spreadsheets/d/...
Objective-C code
NSString *url = @"https://docs.google.com/spreadsheets/d/...";
NSString *string = [NSString stringWithFormat:@"googlesheets://%@",url];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:string]];
Swift code
let url = "https://docs.google.com/spreadsheets/d/..."
let string = NSURL(string : "googlesheets://\(url)")
UIApplication.sharedApplication().openURL(string!)
This will work if you only want to open a specific sheet ????
如果您只想打开特定的工作表,这将有效