2012-10-19 20 views
1

我使用SBJason解析器將數據從我的服務器拉到我的應用程序,但升級到Xcode 4.5後出現此新錯誤。通用SBJason解析器反映Xcode 4.5上的錯誤

在此行中:

- (void)maxDepthError { 
    self.error = [NSString stringWithFormat:@"Input depth exceeds max depth of %lu", maxDepth]; //This is where the error lies 
    self.state = [SBJsonStreamParserStateError sharedInstance]; 
} 

錯誤:

Format specifies type 'unsigned long' but the argument has type 'NSUInteger'(aka 'unsigned int') 

任何指針是極大的讚賞。

回答

1

要修正錯誤改變格式說明糾正無符號整數(%u

self.error = [NSString stringWithFormat:@"Input depth exceeds max depth of %u", maxDepth]; 
+0

感謝名單價值......我害怕與它篡改... –