vinnyoodles / dual-slide-menu

Right and/or left menu that can be swiped to view from the center view, written in Swift 🔶
MIT License
12 stars 7 forks source link

I only see the border of the view.. #11

Closed ameliandev closed 8 years ago

ameliandev commented 8 years ago

Hi.

I'm triying to implement your Menu in my project. I'm following the example that do you have in the specifications, all works fine, but when I swipe the Main view, I only see a minimal border of the left view. I don't know if I put some extra to see the entire view.

See the atached image: menu

Can you help me?

Regards,

vinnyoodles commented 8 years ago

Could you post a code snippet of how you are setting up the view hierarchy?

ameliandev commented 8 years ago

Yes sure. This is my AppDelegate content. Of course, the left View exists ("leftMenuViewController")

`import UIKit import DualSlideMenu

@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?
var storyBoard: UIStoryboard?

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    // Override point for customization after application launch.

    window = UIWindow(frame: UIScreen.mainScreen().bounds)
    storyBoard = UIStoryboard(name: "Main", bundle: nil)

    let lLeft = storyBoard?.instantiateViewControllerWithIdentifier("appMenuLeftCtrl") as! MenuLeftController
    let lMain = storyBoard?.instantiateViewControllerWithIdentifier("MainCtrl")

    let controller = DualSlideMenuViewController(mainViewController: lMain!, leftMenuViewController: lLeft)

    controller.leftSideOffset = 100
    window!.rootViewController = controller
    window!.makeKeyAndVisible()

    return true
}

}`

vinnyoodles commented 8 years ago

That looks good. The only thing I can think of that may be the storyboard. Did you add any views or constraints in the MenuLeftController?

ameliandev commented 8 years ago

No, nothing. The scene contains a View without controls or constraints, only a grey background.

vinnyoodles commented 8 years ago
screenshot-1

Use this tool and see what is happening to the left view. This might help https://www.raywenderlich.com/98356/view-debugging-in-xcode-6

ameliandev commented 8 years ago

Well, in the debug view I see the content...maybe it's emulator problem?? I'm running it on iPhone 6 simulator with 9.1 ios

vinnyoodles commented 8 years ago

hmm, that's weird. I guess it must be an emulator problem, but I'm not sure how it could...

ameliandev commented 8 years ago

Solved..this my fault. I had using a background that cover the view

vinnyoodles commented 8 years ago

Awesome, hope I was some help to you and thanks for using my library :)