I am trying to compare to numeric values to each other but I get the warning "Comparison of integers of different signs: 'NSInteger' (aka 'inti) and 'NSUInteger' (aka 'unsigned int').
Which is logical since I do that ;). But how do I fix this warning. This is the code that raises the warning:
if (page >= self.controllers.count || page < 0)
return;
Page can be -1 so it is a NSInteger but count returns a NSUInteger.
Instead of using an NSInteger for page and -1, use NSUInteger and NSNotFound where you use -1.
Then you're comparing the same types.
if (page >= self.controllers.count || page == NSNotFound)
return;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With