having a weird issue comparing two NSIntegers after doing a subtraction, any ideas why this comparison returns "< nil >" instead of false? I checked to make sure I had values for all variables in the debugger
NSInteger totalPhotosLeft = self.totalPhotosInRoll - self.currentPhotosFetchedCount;
if (self.enumerateCount < totalPhotosLeft) {
...//never goes here, comparison above always returns < nil >
}
My properties
@property (nonatomic) NSInteger currentPhotosFetchedCount;
@property (nonatomic) NSInteger enumerateCount;
@property (nonatomic) NSInteger totalPhotosInRoll;
viewDidLoad
self.currentPhotosFetchedCount = 60;
self.enumerateCount = 15;
self.totalPhotosInRoll = 65;