Polarbear, first xcode is the official Apple programming suite for both iOS and OS X (i products and Mac).
Second a tab based application is using the UITabBarController to move around its views.
Third I looked at your storyboard and it looks like your segue from "test" viewcontroll to "Creat Test" view controller is activated via a button.
Your "test" viewcontroller should have a "prepareForSegue" method which you personally can write if the code generator you use hasn't.
I assume you're using swift so here's some sample code:
Code:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Make sure your segue name in storyboard is the same as this line
if (segue.identifier == "YOUR_SEGUE_NAME_HERE") {
// Get reference to the destination view controller
var vc: YourViewController? = segue.destination
// Pass any objects to the view controller here, like...
vc?.myObjectHere = object
}
}
Now you will need to know some other things.
"YOUR_SEGUE_NAME_HERE" is the name you give the segue.
"myObjectHere" is the public label variable in the "creat test" viewcontroller.
You can now pass the data to the label in the new view controller.
BTW you best friend for questions about coding for iOS is "
https://stackoverflow.com"
And if you want to convert ObjectiveC to Swift use "
https://objectivec2swift.com/#/home/converter/"
Here's another example:
Code:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
var DestViewController : SecondViewController = segue.destinationViewController as! SecondViewController
DestViewController.TotalMoneyLabel.text = T1Total
}
Are you using Delphi to design you layout? You really need to LEARN Xcode and Swift or ObjectiveC if you want to master iOS programming or simple questions like this will continue to stump you.
---------------
You might also consider saving you "test" data in the user defaults file of your app.
here's some sample code:
Code:
override init() {
super.init()
defaults = UserDefaults(suiteName: "your.group.com")
//now get any that are stored
self.getDefaults()
//save any defaults not set
self.setDefaults()
}
func getDefaults() {
data1 = defaults.float(forKey: kDataOne)
}
func setDefaults() {
defaults.set(data1, forKey: kDataOne)
}
You really need to learn Xcode, Swift or ObjectiveC and the Apple iOS API. Stop relying on code generators from some cross-platform designer.
BTW I use ObjectiveC.