Skip to content

Instantly share code, notes, and snippets.

@jasarien
Created June 15, 2012 00:59
Show Gist options
  • 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