In my app that works on iOS 5 and 6 I have an if
statement:
NSInputStream *inputStream = [NSInputStream inputStreamWithFileAtPath:sourcePath];
if ([inputStream streamStatus] == NSStreamEventErrorOccurred){
[...]
}
On iOS 7 I get the following warning:
Comparison of constant 'NSStreamEventErrorOccurred' with expression of type
'NSStreamStatus' (aka 'enum NSStreamStatus') is always false
Any ideas on what's changed on iOS 7 regarding NSInputstream
class? I would like to know why do I receive this warning now on iOS7.