How will I be able to remove [NSNull Null] objects from NSMutableArray?

后端 未结 5 708
南笙
南笙 2020-11-30 12:22

I need to remove Null object added by

 [mutArrSkills addObject:[NSNull null]];

Do I need to iterate? Is there any function to remove all nu

5条回答
  •  春和景丽
    2020-11-30 13:04

    You can try doing this,

    NSNull *nullValue = [NSNull null]; 
    
    [mutArrSkills removeObjectIdenticalTo:nullValue];
    

    I hope this helps.

提交回复
热议问题