久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='47Car'></tfoot>

      <legend id='47Car'><style id='47Car'><dir id='47Car'><q id='47Car'></q></dir></style></legend>

        <bdo id='47Car'></bdo><ul id='47Car'></ul>

      <small id='47Car'></small><noframes id='47Car'>

      <i id='47Car'><tr id='47Car'><dt id='47Car'><q id='47Car'><span id='47Car'><b id='47Car'><form id='47Car'><ins id='47Car'></ins><ul id='47Car'></ul><sub id='47Car'></sub></form><legend id='47Car'></legend><bdo id='47Car'><pre id='47Car'><center id='47Car'></center></pre></bdo></b><th id='47Car'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='47Car'><tfoot id='47Car'></tfoot><dl id='47Car'><fieldset id='47Car'></fieldset></dl></div>
      1. 從 ACAccountStore 打開 Twitter 設置 (iOS 5.1 TWITTER)

        Open Twitter Setting from ACAccountStore (iOS 5.1 TWITTER)(從 ACAccountStore 打開 Twitter 設置 (iOS 5.1 TWITTER))
          <bdo id='anIoi'></bdo><ul id='anIoi'></ul>

              <small id='anIoi'></small><noframes id='anIoi'>

              • <legend id='anIoi'><style id='anIoi'><dir id='anIoi'><q id='anIoi'></q></dir></style></legend>
                  <tbody id='anIoi'></tbody>

                <tfoot id='anIoi'></tfoot>
                <i id='anIoi'><tr id='anIoi'><dt id='anIoi'><q id='anIoi'><span id='anIoi'><b id='anIoi'><form id='anIoi'><ins id='anIoi'></ins><ul id='anIoi'></ul><sub id='anIoi'></sub></form><legend id='anIoi'></legend><bdo id='anIoi'><pre id='anIoi'><center id='anIoi'></center></pre></bdo></b><th id='anIoi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='anIoi'><tfoot id='anIoi'></tfoot><dl id='anIoi'><fieldset id='anIoi'></fieldset></dl></div>

                  本文介紹了從 ACAccountStore 打開 Twitter 設置 (iOS 5.1 TWITTER)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  在 iOS 5.0 中,我通過

                  in iOS 5.0 i was opening Twitter setting from my app by

                  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=TWITTER"]];

                  但是,這個功能在 iOS 5.1 中被刪除了,因此我無法打開 twitter 設置.

                  but , this features is removed in iOS 5.1 , hence i can not able to open twitter setting .

                  現在我正在使用

                   + (void)makeRequestsWithURL: (NSURL *)url {
                  // Create an account store object.
                  ACAccountStore *accountStore = [[ACAccountStore alloc] init];
                  
                  // Create an account type that ensures Twitter accounts are retrieved.
                  ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
                  [self canTweetStatus];
                  
                  // Request access from the user to use their Twitter accounts.
                  [accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
                      if(granted) {
                          // Get the list of Twitter accounts.
                          NSArray *accountsArray = [accountStore accountsWithAccountType:accountType];
                  
                          // For the sake of brevity, we'll assume there is only one Twitter account present.
                          // You would ideally ask the user which account they want to tweet from, if there is more than one Twitter account present.
                          if ([accountsArray count] > 0) {
                              // Grab the initial Twitter account to tweet from.
                              ACAccount *twitterAccount = [accountsArray objectAtIndex:0];
                  
                  
                              // Create a request, which in this example, posts a tweet to the user's timeline.
                              // This example uses version 1 of the Twitter API.
                              // This may need to be changed to whichever version is currently appropriate.
                              TWRequest *postRequest = [[TWRequest alloc] initWithURL:url parameters:nil requestMethod:TWRequestMethodPOST];
                  
                              // Set the account used to post the tweet.
                              [postRequest setAccount:twitterAccount];
                  
                              // Perform the request created above and create a handler block to handle the response.
                              [postRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) {
                                  NSString *output = [NSString stringWithFormat:@"HTTP response status: %i", [urlResponse statusCode]];
                                  iOS5Twitter *twitter5 = [[iOS5Twitter alloc] init];
                                  [twitter5 performSelectorOnMainThread:@selector(displayText:) withObject:output waitUntilDone:NO];
                                  [twitter5 release];                }];
                          }
                      }
                  
                  }];
                  

                  }

                  為了提出請求,我可以通過

                  for making request, i am able to check wether i am loged in or not by the

                  if ([TWTweetComposeViewController canSendTweet])

                  但現在我想要:如果我沒有登錄,它會顯示如圖所示的警報,并希望移動到 twitter 設置.是否可以 ?或者我必須手動進入 ti twitter 設置?

                  but now i want : if i am not loged in it would be show an alert like shown in image and want to move to the twitter setting . is it possible ? or i have to manually go ti twitter setting ?

                  推薦答案

                  這有點棘手,我通過刪除 *TWTWeetComposeViewController* 中的子視圖來獲得,所以它只在用戶不存在時顯示警報登錄并點擊設置按鈕,我們可以在我的應用程序中打開設置頁面.

                  It is little tricky , i get by the removing the subviews in *TWTWeetComposeViewController*, so it shows only alert when user is not loged in and by the clicking on setting button , we can open Setting page in my app.

                       + (void)setAlertForSettingPage :(id)delegate 
                      {
                       // Set up the built-in twitter composition view controller.
                          TWTweetComposeViewController *tweetViewController = [[TWTweetComposeViewController alloc] init];
                  
                  
                          // Create the completion handler block.
                          [tweetViewController setCompletionHandler:^(TWTweetComposeViewControllerResult result) {
                              [delegate dismissModalViewControllerAnimated:YES];
                          }];
                  
                          // Present the tweet composition view controller modally.
                          [delegate presentModalViewController:tweetViewController animated:YES];
                          //tweetViewController.view.hidden = YES;
                          for (UIView *view in tweetViewController.view.subviews){
                              [view removeFromSuperview];
                          }
                  
                       } 
                  

                  這里,deleate 是您的視圖控制器,如果您在視圖控制器中使用此方法,只需使用 self 而不是 delegate.

                  here , deleate is your viewcontroller , if you are using this method inside your viewcontroller just use self instead of delegate.

                  這篇關于從 ACAccountStore 打開 Twitter 設置 (iOS 5.1 TWITTER)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))
                      <bdo id='nDcqO'></bdo><ul id='nDcqO'></ul>

                          <tbody id='nDcqO'></tbody>

                      1. <legend id='nDcqO'><style id='nDcqO'><dir id='nDcqO'><q id='nDcqO'></q></dir></style></legend>

                          <tfoot id='nDcqO'></tfoot>

                            <small id='nDcqO'></small><noframes id='nDcqO'>

                            <i id='nDcqO'><tr id='nDcqO'><dt id='nDcqO'><q id='nDcqO'><span id='nDcqO'><b id='nDcqO'><form id='nDcqO'><ins id='nDcqO'></ins><ul id='nDcqO'></ul><sub id='nDcqO'></sub></form><legend id='nDcqO'></legend><bdo id='nDcqO'><pre id='nDcqO'><center id='nDcqO'></center></pre></bdo></b><th id='nDcqO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='nDcqO'><tfoot id='nDcqO'></tfoot><dl id='nDcqO'><fieldset id='nDcqO'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 国产精品久久久久久久久久久免费看 | 国产成人jvid在线播放 | 久久国产精品久久国产精品 | 91精品国产自产在线老师啪 | 亚洲精品久久 | 亚洲欧美日韩精品久久亚洲区 | 久久成人免费观看 | 99久久99热这里只有精品 | 精品一区二区久久久久久久网站 | 在线不卡 | 五月婷婷 六月丁香 | 美女在线视频一区二区三区 | 成人美女免费网站视频 | 欧美在线a | 国产一区2区| 日韩精品在线观看一区二区 | 极品粉嫩国产48尤物在线播放 | 久久区二区 | 国外成人在线视频 | 午夜小视频免费观看 | 日韩视频免费看 | 黄色大片视频 | 亚洲一区二区在线免费观看 | 精品国产欧美一区二区 | 激情国产视频 | 日韩毛片在线视频 | 91精品国产综合久久久密闭 | 成人日韩av | 国产性网| 日韩高清国产一区在线 | 欧美一区二区大片 | 久草在线影 | 日本一区视频在线观看 | 日韩一二区 | 久久亚洲视频 | 精品久久国产视频 | 精品国偷自产在线 | 久久国产婷婷国产香蕉 | а_天堂中文最新版地址 | 精品伊人| 国产精品久久精品 |