[Solved] Obj-C – How to pass data between viewcontrollers using a singleton?
Your addressing, and memory management is just plain… off. Firstly, there’s absolutely no reason to create a singleton for this, but that’s beside the point here. Secondly, when declaring properties, (atomic, assign) is defaulted to if not otherwise specified, which means your string: @property (nonatomic)NSString *passedValue; is weak sauce, ripe for deallocation and destruction at … Read more