【发布时间】:2016-03-28 11:14:40
【问题描述】:
这是我的代码:
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)
【问题讨论】:
-
你尝试过委托模式吗?
-
不,我没有尝试委托模式,你能简单解释一下吗@ismail
-
但我正在使用集合视图,同时单击我需要发送字符串的单元格 ...@ismail
标签: ios objective-c swift uiviewcontroller swrevealviewcontroller