SlidingContainerViewController icon indicating copy to clipboard operation
SlidingContainerViewController copied to clipboard

Collection View :swift

Open ryukouiti opened this issue 7 years ago • 4 comments

Hi,can i add collection view ? I would be happy to hear from you .

ryukouiti avatar Jul 25 '17 14:07 ryukouiti

Tell me how to add collection view. I will wait for you.

ryukouiti avatar Jul 25 '17 14:07 ryukouiti

Hi, sure you need to add in your content controller.

cemolcay avatar Jul 25 '17 15:07 cemolcay

Thank you for replaying I would be happy to help me

fatal error: unexpectedly found nil while unwrapping an Optional value

func viewControllerWithColorAndTitle (_ color: UIColor, title: String) -> UIViewController { let vc = UIViewController ()

        vc.view.addSubview(collectionView)
        
        return vc
    }

ryukouiti avatar Jul 25 '17 20:07 ryukouiti

I want to add collection view to vc1, vc2, vc3, vc4.

let slidingContainerViewController = SlidingContainerViewController ( parent: self, contentViewControllers: [vc1, vc2, vc3, vc4], titles: ["First", "Second", "Third", "Forth"])
self.view.addSubview(slidingContainerViewController.view)

ryukouiti avatar Jul 25 '17 20:07 ryukouiti