所以我需要用变量除以一个数字.我怎样才能做到这一点?我知道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)感谢您的帮助