Skip to content

Wanted to display only some portion of the screen #20

Description

@arshadsk5

Hello,
the library is good and very simple to implement, but in my case instead of displaying the content in fullscreen, i want to display only in some portion of the screen.
screen shot 2018-05-24 at 11 06 22 am

I want to display slide in bottom of the screen , above sliding view i will be having calendar.

when i try to do the changes, the slide looks as below.

screen shot 2018-05-24 at 11 09 37 am

I have drag and drop a uiview and given outlet as customview and writing the code as below.

customView.addSubview(slidingContainerViewController.view)

-> it is leaving some space from custom view top.
-> the sliding content should be display under that view

Please help it is urgent requirement.

Thanks in advance.

Activity

  1. cemolcay commented on May 24, 2018

    @cemolcay
    Owner
  2. arshadsk5 commented on May 24, 2018

    @arshadsk5
    Author

    Thanks for your quick reply, i am very much impressed. I will check that using containerviews, then what about the top space?

  3. arshadsk5 commented on May 24, 2018

    @arshadsk5
    Author

    I used the containers, i can display multiple views, but the problem is i am getting space from top of the view.

    screen shot 2018-05-24 at 11 47 39 am

    i have drag and drop a view, given outlet as custom view. Under that custom view i placed my two container views.

     let vc1 = getViewController(name: "ViewController1", onStoryboard: "Main")
     let vc2 = getViewController(name: "ViewController2", onStoryboard: "Main")
     let slidingContainerViewController = SlidingContainerViewController (
      parent: self,
      contentViewControllers: [vc1, vc2],
      titles: ["First","Second"])
    customView.addSubview(slidingContainerViewController.view)
    

    Viewcontroller1 & 2 are my containers.

    If i am changing this code to ,

    view.addSubview(slidingContainerViewController.view) , mainView then it displaying properly.

    Please help , it is urgent requirement.

  4. arshadsk5 commented on May 24, 2018

    @arshadsk5
    Author

    Please check the hierarchy ,

    screen shot 2018-05-24 at 12 30 17 pm

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