NSUserDefaults and KVO issues

前端 未结 5 1807
清酒与你
清酒与你 2020-12-03 12:11

I\'m using NSUserDefaults in my app and I would like to be notified when a particular value is changed. For that, I added the following lines in viewDidLoad:



        
5条回答
  •  囚心锁ツ
    2020-12-03 12:22

    Though its not well documented, NSUserDefaults do support key-value observing in iOS7.

提交回复
热议问题