how to check that if any item String is added in array and that is empty so how to remove that from array at run time
i have array like
NSArray *myArray = [[NSArray alloc] initWithObjects:iphone,droid,blackberry,donotUse,window,other,nil];
i want that if iphone is empty at runtime it should not be in the array.
becuase if it is empy then it does not show rest of the values so how to fix this issue.
Use
NSMutableArrayinstead and only add if it is different fromnil: