+ Reply to Thread
Results 1 to 2 of 2

Thread: NSDictionary to NSMutableDictionary

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    7

    NSDictionary to NSMutableDictionary

    Hi
    how to convert NSDictionary to NSMutableDictionary, or NSMutableDictionary to NSDictionary
    Thanks

  2. #2
    Junior Member
    Join Date
    Oct 2012
    Posts
    13
    its very simple using functions,

    to convert NSDictionary to NSMutableDictionary, just use mutableCopy function of NSDictionary
    Code:
    NSMutableDictionary *mutableDict = [[dict mutableCopy] autorelease];
    to convert NSMutableDictionary to NSDictionary, use copy function of NSMutableDictionary
    Code:
    NSDictionary *dict = [[mutableDict copy] autorelease];

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts