小编The*_*rmo的帖子

在Objective-C中划分变量

所以我需要用变量除以一个数字.我怎样才能做到这一点?我知道DIV和MOD的C函数,但不知道如何在Objective-C/cocoa-touch中使用它们.这是我的代码的一个例子.

// hide the previous view
scrollView.hidden = YES;

//add the new view
scrollViewTwo.hidden = NO;

NSUInteger across;
int i;
NSUInteger *arrayCount;
// I need to take arrayCount divided by three and get the remainder
Run Code Online (Sandbox Code Playgroud)

当我尝试使用/或%时,我得到错误"二进制表达式的无效操作数('NSUInteger和int)感谢您的帮助

cocoa-touch objective-c

0
推荐指数
1
解决办法
3133
查看次数

标签 统计

cocoa-touch ×1

objective-c ×1