ios - How to work with StoryBoard referencing in UITableview or UICollectionView? -
i have table view , clicking on each cell open different flow of view controllers.
i know xcode 7 has storyboard reference can link flow in 2 different storyboards, don't know whether it's possible uitableview cell or uicollectionview item.
i have tried dragging storyboard reference , tried connect view controller , not allowing me if try connect view controller storyboard reference, works.
i want know how storyboard referencing work uitableview cell or uicollectionview item each cell/item has different flow, , possible invoke storyboard reference programatically?
if want reference view controller on storyboard. can use following code:
var yourstoryboard = uistoryboard(name: "your storyboard name", bundle: nil) var yourvc = yourstoryboard.instantiateviewcontrollerwithidentifier("your vc id") as! yourvctype
Comments
Post a Comment