The iOS app calls Taobao to the designated store page

NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"tbopen://shop.m.taobao.com/shop/shop_index.htm?shop_id=%@",shopId]];

if ([[UIApplication sharedApplication] canOpenURL:url]) {

// If the Taobao client has been installed, use the client to open the link

[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];

}

If the whitelist is not configured, there may be no response, so be sure to add the whitelist scheam in the plist file: tbopen

Guess you like

Origin blog.csdn.net/ForeverMyheart/article/details/125337571