I have a Tab Bar app set up where the user selects their default branch in the first view. In the third view, I am trying to load the user default but I keep getting a value of “null”. I’ve tried loading
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
in the viewWillAppear, the viewDidLoad and nothing seems to work. I’ve test the user default from the first view which will work but somehow they are loading into my other views.
Looks like I was loading the defaults from the class and not the delegate