Questions tagged [twrequest]

42 questions
1
vote
1 answer

Getting "unrecognized selector sent to instance" when trying to post with TWRequest

I'm trying to post an image using the TWRequest object. Here's my code: ACAccountStore *accountStore = [[ACAccountStore alloc] init]; ACAccountType *accountType = [accountStore…
YogevSitton
  • 10,068
  • 11
  • 62
  • 95
1
vote
0 answers

How to do login with TWRequest in a user friendly manner?

After having a look at Apple TWRequest class (and example), I was surprised it has no possibilities for presenting a user with a login screen. The only way is to check if a user has entered its credentials with [TWTweetComposeViewController…
Centurion
  • 14,106
  • 31
  • 105
  • 197
1
vote
1 answer

Twitter.framework in Mountain Lion?

I'm playing with the new stuff in Mountain Lion, and so I booted up a new Mountain Lion Cocoa app - I got the ACAccount Stuff working right away, but when I went to include the Twitter.framework file, it isn't there! All the apple docs I've seen…
Jesse
  • 10,370
  • 10
  • 62
  • 81
1
vote
1 answer

ivar is releasing under ARC - how do I retain it for use in another method?

I have been struggling with something for weeks and it has brought a real halt to my progress. I have asked a question a few times on SO, people have been helpful but no-one has cracked what I am doing wrong. It seems a fairly simple thing so…
Alan
  • 63
  • 7
1
vote
0 answers

Set a username and password for TWRequest (with ACAccount) in order to see specific user's home timline

I am trying to access a specific user's home timeline, so that I can see the tweets that the user would see on his timeline when he logs into twitter. I have the username and password, but can not find how to link this up to the TWRequest. I have…
Josh Sklar
  • 461
  • 1
  • 3
  • 14
1
vote
1 answer

How to change profile picture using TWRequest

How to change profile picture using TWRequest , I post to timeLine using this code -(IBAction)postToTwitter { ACAccountStore *account = [[ACAccountStore alloc] init]; ACAccountType *accountType = [account…
Mohamed DiaaEldin
  • 1,061
  • 1
  • 10
  • 23
1
vote
0 answers

Verify username and password using TWRequest

I have a doubt regarding TWRequest. My requirement is that I need to enter the user name and password of Twitter in my application viewController, not in the settings of device. Is it possible to verify the login credentials of Twitter in this…
sree_iphonedev
  • 3,514
  • 6
  • 31
  • 50
1
vote
0 answers

TWRequest Caching

I use TWRequest in ios5 to fetch avatars for user accounts. The returned image data doesn't seem to be cached. If I check the Cache.db sqlite database, there are records for all images, however, they contain no data. Is there any easy way to enable…
iBiryukov
  • 1,730
  • 4
  • 19
  • 30
1
vote
0 answers

Allocation and Deallocation of objects on different threads causing memory leaks.

I am using TWRequest to call out to Twitter each time i make a request i get a memory leak inside instruments like so. on [request performRequestWithHandler:] I am tracing out the allocation and deallocation of the class that contains the request.…
Anthony McCormick
  • 2,724
  • 3
  • 25
  • 27
0
votes
1 answer

How to return a value from from a TWRequestHandler completion handler in iOS?

I'm trying to use the new twitter classes in ios5, but am having problems because of the completion handlers. How can I make a request in a method and have that return a value of something from the completion handler? - (NSString) myMethod { …
Tom Kincaid
  • 4,887
  • 6
  • 47
  • 72
0
votes
2 answers

issue with EXC_BAD_REQUEST in TWRequest

I have the following code and it always gives me a crash when performing the request, any idea? NSString *responseBody = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; …
adit
  • 32,574
  • 72
  • 229
  • 373
0
votes
1 answer

NSInvocationOperation ignoring maxConcurrentOperationCount

I'm trying to queue up some TWRequest calls using NSInvocationOperation. It seems to add the method calls in the correct order, but the doSomething: methods get called at the same time pretty much, ie run concurrently, rather than one after the…
mootymoots
  • 4,545
  • 9
  • 46
  • 74
0
votes
1 answer

iOS 5 Twitter performRequestWithHandler does not work on device

I've converted from using MGTwitterEngine to the new iOS 5.0 twitter API. My app works like a champ when running in the simulator. However, when I run it on the iPad (a device) performRequestWithHandler always ends up with a request timeout. I…
iOSdevdude
  • 41
  • 4
0
votes
0 answers

having an issue with ios twitter app and attribution

I have read all the posts I can find and seriously how to stop this "via iOS" tag and put my app name? I have all the links, nobody else has my name, what else do I need to do? I am using TWRequest is that the problem? Any info would be great…
rick
  • 451
  • 3
  • 13
0
votes
1 answer

How to use iOS TWRequest for iOS 5 for getting Twitter User Details

How to use TWRequest for both iOS 5 for getting Twitter User Details, TWRequest was working earlier and I was using in this way NSURL *url = [NSURL URLWithString:@"https://api.twitter.com/1/users/show.json"]; NSDictionary *params = [NSDictionary…
Ganesh
  • 1,059
  • 1
  • 10
  • 28