I am trying make an NSString retain its value in another view controller, and it works when I push to the viewcontroller controller. However when I use the apple's navigation back button (automatically generated) it doesn't retain the value. How do I overcome this? I believe the automatic back button is poptoviewcontroller. I will post some code to help give you an idea.
NSString *ee = @"energy";
optViewController.energy = ee;
Controller I am trying to goto.
@property (strong,nonatomic) NSString *energy