此代码导致错误:
- (NSString *)cachedTwitterOAuthDataForUsername:(NSString *)username
{
NSString *cache = [NSString stringWithString:[settings objectForKey:@"twitterCache"]];
if (cache.length > 0)
{
twitterLoginShown = YES;
return cache;
}
return @" ";
}
出于某种原因,我什至无法单步执行此代码块中的每一行。我不太确定错误在问什么。
最佳答案
错误表明 [settings objectForKey:@"twitterCache"]
返回 nil
。检查 settings
是否包含 key @"twitterCache"
的值。
关于iphone - 核心动画 : ignoring exception: *** -[NSPlaceholderString initWithString:]: nil argument,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6906941/