-1

Can anyone let me know how to use the twitter framework in my app for ios 4,5 and 6 ?

Virja Rahul
  • 415
  • 2
  • 4
  • 12
  • 3
    Please research thoroughly .... – IronManGill Nov 10 '12 at 10:02
  • This is unclear. "How to use"; use for what, sending tweets, adding contact information from twitter, getting users' uploaded pictures? You should show code that you've already tried, and ask about specific errors you having with it. (Plus, using Twitter in an iOS app is a common task, there are plenty of guides and documentation about.) – Alex Nov 10 '12 at 10:03
  • 3
    "Can anyone let me know how to use the twitter framework in my app for ios 4,5 and 6 ?" - Sure. Read the docs. Write some code. Come back when you are stuck. – Mitch Wheat Nov 10 '12 at 10:06

1 Answers1

1

Here is a code snippet for creating and presenting the TWTweetComposeViewController using the buit-in-twitter frame work included in the iOS 5:

Include the twitter frame work and import #import <Twitter/Twitter.h>

if ([TWTweetComposeViewController canSendTweet])
{
    TWTweetComposeViewController *tweetSheet = 
        [[TWTweetComposeViewController alloc] init];
    [tweetSheet setInitialText:@"Initial Tweet Text!"];
    [self presentModalViewController:tweetSheet animated:YES];
}

This is a good tutorial for you.

Midhun MP
  • 103,496
  • 31
  • 153
  • 200
  • i made one application for ios4. in that app i use the SA_OauthTwitter class now i make this applicaton for ios 6 how to i use twitter? – Virja Rahul Nov 10 '12 at 10:13
  • you need to set target to 4.3 or else and compile, then check whether it works on iOS 4, i didn't checked it on iOS 4 device, So I'm not sure. :) – Midhun MP Nov 10 '12 at 10:14
  • can we use the SA_OauthTwitter Classes and twitter framework for ios 6 in one application... – Virja Rahul Nov 10 '12 at 10:18
  • @VirjaRahul: twitter framework will work with iOS 4, check these links for clarification http://stackoverflow.com/questions/9132745/is-there-any-single-library-for-twitter-sharing-in-ios4-and-ios-5 http://stackoverflow.com/questions/8474153/twitter-integration-in-ios-4-5-app – Midhun MP Nov 10 '12 at 10:19
  • @VirjaRahul: you can use twitter framework for iOS 4,5 and 6 :) – Midhun MP Nov 10 '12 at 10:20
  • @VirjaRahul "Can we use this, can we use that" - GOOGLE IT –  Nov 10 '12 at 10:24