隐式转换失去整数精度'NSUInteger'(又名'unsigned long')到'int'警告?

Use*_*558 0 objective-c nsnumber ios

嗨,我收到此错误!我在indexpath.row中使用NSNumber但它给出了警告,我的代码有什么问题请帮助.

 NSNumber *num=[NSNumber numberWithInt:indexPath.row];
        [HUD showWhileExecuting:@selector(callingMethod:) onTarget:self  withObject:num animated:YES];
Run Code Online (Sandbox Code Playgroud)

Aru*_*run 5

indexPath.row是返回NSInteger价值而不是int价值.试试这个

NSNumber *num=[NSNumber numberWithInteger:indexPath.row];
Run Code Online (Sandbox Code Playgroud)