开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜