문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top