I am creating an application for iOS with Objective-c.
Using the Navigation Controller, we create a program that transitions between screens 1 and 2.
On screen 2, use the + button to add values to Tableview.
At this time, if you transition to screen 1, all Tableview values will be cleared on screen 2.
In this case, how can I keep the Tableview value on screen 2?
For the time being, why don't you use Navigation Controller class variables easily?
In NavigationController.h, click
@property(nonatomic)NSInteger count;
As a , from View Controller hanging from this Navigation Controller, etc.,
NavigationController*nc=(NavigationController*)self.navigationController;
NSInteger count = nc.count;//read
nc.count = count +100; // write
can read and write.
541 Unable to install versioned in Google Colab
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
547 PHP ssh2_scp_send fails to send files as intended
529 Uncaught (inpromise) Error on Electron: An object could not be cloned
546 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.