I have an NSNumber that is created in AppDelegate and contains numberWithBool:TRUE and a ViewController in which the comparison should be performed.
My problem is that the ViewController does not recognize that my NSNumber set to 1 . The debugger proves that NSNumber indeed set to 1 , but nothing happens.
if([appDelegate.gotUrl isEqualToNumber:[NSNumber numberWithBool:TRUE]]) {
Any solutions for my problem?
Thank you in advance
source share