我試圖從視圖控制器傳遞圖像到UICollectionViewCell,只要我繼續到UICollectionViewController。通常,我只是使用下面的代碼將變量直接傳遞給UICollectionViewController。 let myCollectionViewController = MyCollectionViewController(collectionViewLayout: U
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 nextPa