Я пытаюсь получить Tweetbot, чтобы открыть учетную запись пользователя, когда пользователь использует таблицу. Однако, хотя функция Tweetbot открывается, она не отображает учетную запись пользователя. Я использовал Tweetbot URL Scheme page в качестве ссылки.Tweetbot URL-схема, не открывающая пользователя
Ниже мой код:
if (indexPath.row == 1) {
// Removed the actual username
self.destViewURL = @"http://twitter.com/dummyusername";
self.destViewTitle = @"Twitter";
// URLs to try
NSURL *twitterURL = [NSURL URLWithString:@"twitter://user?screen_name= dummyusername"];
NSURL *tweetbotURL = [NSURL URLWithString:@"tweetbot://dummyusername/timeline"];
// Check if Tweetbot is available to open it
if ([[UIApplication sharedApplication] canOpenURL:tweetbotURL]) {
[[UIApplication sharedApplication] openURL:tweetbotURL];
}
else {
// Check if Twitter is available to open it
if ([[UIApplication sharedApplication] canOpenURL:twitterURL]) {
[[UIApplication sharedApplication] openURL:twitterURL];
}
// Otherwise open it in the web view
else {
[self performSegueWithIdentifier:@"showWebView" sender:nil];
}