how to add nil to nsmutablearray?

后端 未结 9 1287
-上瘾入骨i
-上瘾入骨i 2020-12-13 12:22
NSArray *array = [[NSArray alloc] initWithObjects:@\"ΕΛΤΑ\",
                      @\"ΕΛΤΑ COURIER\", @\"ACS\", @\"ACS ΕΞΩΤΕΡΙΚΟ\", 
                      @\"DHL\",          


        
9条回答
  •  萌比男神i
    2020-12-13 12:47

    nil is not an object that you can add to an array: An array cannot contain nil. This is why addObject:nil crashes.

提交回复
热议问题