Created
June 15, 2012 00:59
-
-
Save jasarien/2933982 to your computer and use it in GitHub Desktop.
TWRequest Crash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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