This code is causing the error:
- (NSString *)cachedTwitterOAuthDataForUsername:(NSString *)username
{
NSString *cache = [NSString stringWithString:[settings objectForKey:@"twitterCache"]];
if (cache.length > 0)
{
twitterLoginShown = YES;
return cache;
}
return @" ";
}
I can’t even step through each line in this block of code for some reason. I’m not exactly sure what the error is asking.
The error tells that
[settings objectForKey:@"twitterCache"]returnsnil. Check ifsettingscontains a value for the key@"twitterCache".