开发者

isinf is forbidden in submit to appstore

开发者 https://www.devze.com 2023-03-06 10:35 出处:网络
My application has been rejected be开发者_运维百科cause of isinf. What\'s an equivalent I can use to get my application accepted?

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??
}
0

精彩评论

暂无评论...
验证码 换一张
取 消