¡@

Home 

2014/10/15 ¤U¤È 10:10:27

iphone Programming Glossary: init_val

Cannot set NSUserDefaults field

http://stackoverflow.com/questions/4855771/cannot-set-nsuserdefaults-field

of my app NSUserDefaults defaults NSUserDefaults standardUserDefaults NSString uid @ 1 defaults setObject uid forKey @ init_val defaults synchronize Much later in the code in response to a button press I check the value using NSUserDefaults defaults.. the value using NSUserDefaults defaults NSUserDefaults standardUserDefaults NSString initVal defaults objectForKey @ init_val initVal is always nil. I have checked and init_val is set up exactly the same in my settings bundle as another field that.. standardUserDefaults NSString initVal defaults objectForKey @ init_val initVal is always nil. I have checked and init_val is set up exactly the same in my settings bundle as another field that I can set and read from without issue they are both..