isinf is forbidden in submit to appstore
My application has been rejected be开发者_运维百科cause of isinf
. What's an equivalent I can use to get my application accepted?
Best regards
Did they specifically mention isinf
? If so, it may be worth challenging the rejection as isinf
and isfinite
are both documented: man page as part of the iOS API.
Is this what you're looking for?
if(!isfinite(var))
{
//It's infinite...
}
Or you could try:
NSDecimalNumber *number = [NSDecimalNumber numberWithDouble:myNumber];
if(number == [NSDecimalNumber notANumber])
{
//Infinity??
}
精彩评论