我确实是新的SOS发展,我是试图形成简单表格观点的Im,因此,我增加了一个表象主计长,把我的习惯类别加到这里,现在我正试图增加项目。
So I created a new array:
@property (nonatomic, strong) NSMutableArray *activity;
And I the viewDidLoad, I tried adding some items to the array:
for(int i = 0; i < 20; i++)
{
NSLog(@"Current item: %u", i);
Item *item = [[Item alloc] init];
item.time = @"14:30";
item.text = @"A simple test";
item.startedAgo = @"yesterday";
item.project = @"testProject";
[self.activity addObject:item];
}
NSLog(@"Activity count: %u", [self.activity count]);
当我试图生产阵列的透镜时,该标志似乎被罚款,其停留时间为0。
2012-05-02 14:12:50.772 coop_dev[15352:f803] Current item: 0
......
2012-05-02 14:12:50.783 coop_dev[15352:f803] 经常项目:19
2012-05-02 14:12:50.784 coop_dev[15352:f803] 活动:0
我在这里找不到什么东西?