我将 NSSegmentedControl 设置为发送者,当用户单击对象中的每个按钮时添加功能。下面的片段对我来说总是很好。它仍然存在,但是当我使用 64 位架构构建时收到以下警告。当我恢复到 32 位时,警告就会消失。有人可以告诉我如何编辑代码吗?谢谢您的帮助。-保罗。
“隐式转换失去整数精度:NSInteger(又名long)到“int”
int selectedSegment = [arSegController selectedSegment];
int clickedSegmentTag = [[arSegController cell] tagForSegment:selectedSegment];
if (clickedSegmentTag == 0) {