Objects not being added to NSMutableArray Objective -C

前端 未结 2 1682
小鲜肉
小鲜肉 2021-01-06 16:35

I\'m trying to simply add objects to a mutable array but they WILL NOT insert. I\'m not getting errors or anything and I can\'t figure out whats going on.

In my main

2条回答
  •  日久生厌
    2021-01-06 16:49

    Can you add the code where you initialize your NSMutableArray instances? I think you might have forgotten to initialise the arrays and your addObject calls are being swallowed up with no effect.

提交回复
热议问题