보내는 뷰
var cellData : NSDictionary! = eventList[indexPath.row] as! NSDictionary
var mcode = cellData.valueForKey("mcode") as! String
var link_url = cellData.valueForKey("link_url") as! String
let eventDetailView = EventDetailViewController();
eventDetailView.initData(mcode, mLinkUrl: link_url)
parentNavigationController!.pushViewController(eventDetailView, animated: true)
받는 뷰
var mcode:String?
var uid : String!
var token : String!
var linkUrl : String?
func initData(mmcode:String, mLinkUrl:String) {
mcode = mmcode
linkUrl = mLinkUrl
}
'Programming > Swift' 카테고리의 다른 글
ㄴㅁㅇㅇ (0) | 2015.05.25 |
---|---|
뒤로가기버튼 (0) | 2015.05.15 |
tableView에서 JSon하기 (0) | 2015.05.06 |
unbalanced calls to begin/end appearance transitions for uiviewcontroller (0) | 2015.05.05 |
tableView 기본적으로 꼭 들어가야할 메소드. (0) | 2015.05.04 |