【发布时间】:2012-05-03 00:22:49
【问题描述】:
我正在尝试获取文本字段文本,将其转换为 int,并将其存储在核心数据整数 32 属性中。我在处理过程中遇到错误:
Implicit conversion of 'int' to 'NSNumber' disallowed with arc
这是我尝试过的:
// trying to convert
int intLength = [self.length.text intValue];
// trying to set the current garden attribute to the converted int
self.currentGarden.length = intLength;
我该如何解决这个问题?
【问题讨论】:
标签: objective-c ios core-data ios5