Question

I'm asking because i'm getting a "!" caution warning

asking me to replace %i with %li:

 else if ([sender tag] == 8)
    {
        SKProduct *product = [_products objectAtIndex:6];

        NSLog(@"Buying %@...", product.productIdentifier);
       [[RageIAPHelper sharedInstance] buyProduct:product];
  }

here

  NSLog(@"TAG IS: %i", (long)[sender tag]);

}

If I change it will it still be ok?

Was it helpful?

Solution

%i prints an int, but %li prints a long. Since you are printing a long, you should change it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top