some part of View2 out of range and appear on View1
I implement two Views(view1 and view2) first it shows view1 on my screen , but on the right of the screen , there shows the View2's left part after I slide to View2, and go back to View1. It become normal. http://imgur.com/a/dzi7H I use Swift Xcode 7.2.1
let storyboard_first = UIStoryboard(name: "First", bundle: nil)
let storyboard_sec = UIStoryboard(name: "Second", bundle: nil)
let viewController = storyboard_first.instantiateViewControllerWithIdentifier("collect_science")
viewController.title = "collect_science"
let viewController2 = storyboard_sec.instantiateViewControllerWithIdentifier("vc_MyDiy2")
viewController2.title = "DIY"
let viewControllers = [viewController, viewController2]//
let options = PagingMenuOptions()
options.defaultPage = 0
options.selectedTextColor = UIColor.whiteColor()
options.menuItemMargin = 5
options.menuHeight = 60
options.menuItemMode = PagingMenuOptions.MenuItemMode.None
options.menuDisplayMode = PagingMenuOptions.MenuDisplayMode.SegmentedControl
let pagingMenuController = PagingMenuController(viewControllers: viewControllers, options: options)
pagingMenuController.view.frame.origin.y += 64
pagingMenuController.view.frame.size.height -= 64
addChildViewController(pagingMenuController)
view.addSubview(pagingMenuController.view)
pagingMenuController.didMoveToParentViewController(self)
}
I have the same issue, Do you know how can we fix it?
yes,because of the Constraints , It makes the view out of the range.
It looks like it's an constraints issue. I'll look into this issue and let you know what's wrong.
Thanks!
any update for this issue?
#261 might be same issue