Skip to content

Instantly share code, notes, and snippets.

@jasarien
Created June 15, 2012 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasarien/2933982 to your computer and use it in GitHub Desktop.
Save jasarien/2933982 to your computer and use it in GitHub Desktop.
TWRequest Crash
// This code works:
TWRequest *request = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@"http://api.twitter.com/1/statuses/home_timeline.json"]
parameters:nil
requestMethod:TWRequestMethodGET];
// But this code crashes:
TWRequest *request = [[TWRequest alloc] initWithURL:[NSURL URLWithString:@"http://api.twitter.com/1/statuses/home_timeline.json"]
parameters:@{@"count":@(200)}
requestMethod:TWRequestMethodGET];
// The log shows:
// -[__NSCFNumber length]: unrecognized selector sent to instance 0x9c6e060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment