Skip to content

Collection View :swift #16

Description

@ryukouiti

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

Activity

  1. ryukouiti commented on Jul 25, 2017

    @ryukouiti
    Author

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

  2. cemolcay commented on Jul 25, 2017

    @cemolcay
    Owner

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

  3. ryukouiti commented on Jul 25, 2017

    @ryukouiti
    Author

    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
        }
    
  4. ryukouiti commented on Jul 25, 2017

    @ryukouiti
    Author

    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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions