나는 내 plist 파일에서 항목을 계산할 수있는 질문이있어.plist에서 항목을 계산하는 방법
NSString *bundlePathofPlist = [[NSBundle mainBundle]pathForResource:@"Mything" ofType:@"plist"];
NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:bundlePathofPlist];
NSArray *dataFromPlist = [dict valueForKey:@"some"];
for(int i =0;i<[dataFromPlist count];i++)
{
//NSLog(@"%@",[dataFromPlist objectAtIndex:i]);
[self setTableData:[dataFromPlist count]];
}
NSLog(@"%@", tableData);
을하지만이 줄에 오류가 나타납니다 : 나는 시도
[self setTableData:[dataFromPlist count]];
Implicit conversion of 'NSUInteger' (aka 'unsigned int') to 'NSArray *' is disallowed with ARC
경고 : 내부
Incompatible integer to pointer conversion sending 'NSUInteger' (aka 'unsigned int') to parameter of type 'NSArray *';
@Popeye 불필요한 [xcode] 태그를 삭제 해 주셔서 감사합니다. – vikingosegundo
@vikingosegundo 내가 그것을 제거했지만, 그것은 Frenck에 의해 다시 추가되었습니다 믿습니다. – Popeye
@Frenck Xcode 태그를 다시 추가하지 마십시오. 이 질문에 대해서는 부적절합니다. 혼란과 소음이 발생합니다. – vikingosegundo