0
這是我的代碼:如何在使用swrevealviewcontroller時將數據從oneviewcontroller傳遞到anotherviewcontroller?
let swswipe:SWRevealViewController=UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("swswipe") as! SWRevealViewController
if(indexPath.row==0)
{
let swipe=swipeView()
swipe.collectionClick="one"
self.presentViewController(swswipe, animated: true, completion: nil)
}
front
|
1st view <->swreveal<->2ndview(swipe)
我試圖發送的值從1日至2日,但中間有一個swrevealview控制器的出現,讓價值沒有得到
,但我沒有得到了什麼
print("coming to collection view", self.collectionClick)
你試過委託模式嗎? – Smile
不,我沒有嘗試委託模式,你可以簡要解釋我請@ismail –
但我使用集合視圖,而單擊我需要發送字符串的單元格... @ ismail –