خرید بک لینک

Vote count: 0

func showChatControllerForUser() {
    let chatLogController = ChatLogController(collectionViewLayout: UICollectionViewFlowLayout())
    chatLogController.user = user



    var storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
    var vc: UINavigationController = storyboard.instantiateViewControllerWithIdentifier("ChatLog") as! UINavigationController


    presentViewController(vc, animated: true, completion: nil)
}

I am converting my chat controller to storyboard and this is my code. user information is store inside chatLogController.user.

However now that i'm using storyboard, I keep getting nil for it.

I know i'm writting this code wrong, and would really appreciate your help.

asked 24 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 8 مرداد 1395 ساعت: 4:58

صفحه بندی