NSString *arrayOfStrings = [NSArray arrayWithObjects:@"http://", @"https://", nil];
NSString *stringToSearchWithin = webpageURLLabel.text;
BOOL found=NO;
for (NSString *s in arrayOfStrings)
for 循环说
Collection expression type 'NSString *' may not respond to 'countByEnumeratingWithState:objects:count:'
我该如何解决?现在它只是一个警告,但我不想看到任何警告
最佳答案
您将 arrayOfStrings 声明为 NSString。应该是 NSArray
关于关于枚举的 iOS 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11704950/