0
use the segue. view A is two data to the view B, in the view B show two type data. one is a point. like: 75. the two is some words.like: "that's cool. you get that, good job!"
@IBAction func nextPart(_ sender: UIButton) {
performSegue(withIdentifier: "aSegueB", sender: myPoint)
performSegue(withIdentifier: "aSegueB", sender: myText)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any!) {
if segue.identifier == "aSegueB"{
if let two = segue.destination as? twoView{
two.oneViewNumber = sender as! Int!
two.oneViewText = sender as! String!
}
}
}
セグを使用してください。私は1つの日付の日付を使用してOKです。しかし、私が2つの日付タイプを使用すると、それは壊れています。理由を教えてください。どうやってするか?どうもありがとうございました!Swift3 2つのデータタイプが必要な場合は、セグを使用
どうもありがとうございました。あなたのアイデアを使って、今は仕事です!私のアプリは働いている!ありがとう!! – Jack2300