1

I am using Native contact to store in NSMutableDictionary. So whenever required i can query any contact from NSMutableDictionary without going to Native API's (ABAdressBookRef, CNContactStore).

My Concern is how long NSMutableDictionary will be available in memory?.

nyi
  • 3,123
  • 4
  • 22
  • 45
Kapil_A
  • 125
  • 2
  • 15

2 Answers2

2

As long as you hold a strong reference to it somewhere. When there are no strong references to it, it will be released.

Rob Napier
  • 286,113
  • 34
  • 456
  • 610
0

You can create a singleton class with any number of properties that you want to keep them a live during app time , edit , read them from anywhere in the app

Shehata Gamal
  • 98,760
  • 8
  • 65
  • 87