How to delete the data from plist programmatically ?

Discussion in 'iOS Programming' started by srikanthrongali, May 1, 2010.

  1. srikanthrongali macrumors newbie

    Apr 30, 2010
    I have an array cells. Each entry of array is dictionary. I need to delete the dictionary by using objectAtIndex for cell ? How can I do it programmatically ?
    Thank you.
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    If you have loaded the data into an NSArray you can't change it: NSArrays are immutable. If you have loaded it to a NSMutableArray you can use the well documented removeObjectAtIndex:. Obviously this will only alter your in-memory copy of the data: it will have no effect on the plist file. If the file is within your application bundle you can't save to that.

Share This Page