Saving a NSMutableArray to NSUserDefaults

Discussion in 'iOS Development' started by Chicken, Apr 16, 2009.

  1. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    How can I save a NSMutableArray of strings to NSUserDefaults? Thanks.
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    [[NSUserDefaults standardUserDefaults] setObject:yourArray forKey

    Please Register or Log in to view images

    "SomeKey"];
  3. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S

Share This Page