Giter Site home page Giter Site logo

Comments (8)

iDevelopper avatar iDevelopper commented on July 22, 2024

Can you elaborate please? Do you use Storyboard? Is you side menu button well connected to IBOutlet? Can you provide some lines of code?

from pbrevealviewcontroller.

umairqureshi6 avatar umairqureshi6 commented on July 22, 2024

yes i am using a storyboard, side menu button is well connected to IBOutlet have placed this code in UIViewController class

`- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator
{
[coordinator animateAlongsideTransition:^(id context)
{
}
completion:^(id context)
{

 }];

[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];

}`

using this code in viewdidload

` _leftButton.target = self.revealViewController;
_leftButton.action = @selector(revealLeftView);

_rightButton.target = self.revealViewController;
_rightButton.action = @selector(revealRightView);

// self.revealViewController.leftPresentViewHierarchically = YES;
// self.revealViewController.rightPresentViewHierarchically = YES;

//self.revealViewController.leftToggleAnimationDuration = 0.8;
self.revealViewController.toggleAnimationType = PBRevealToggleAnimationTypeSpring;`

from pbrevealviewcontroller.

iDevelopper avatar iDevelopper commented on July 22, 2024

I don't see anything wrong here. Can you provide a project example?

from pbrevealviewcontroller.

iDevelopper avatar iDevelopper commented on July 22, 2024

Is the class of your MainViewController is set in the storyboard?

from pbrevealviewcontroller.

umairqureshi6 avatar umairqureshi6 commented on July 22, 2024

(https://www.dropbox.com/s/w8nblbycbl3u88k/Daleelo.zip?dl=0)

from pbrevealviewcontroller.

iDevelopper avatar iDevelopper commented on July 22, 2024

This link is broken (404).

However, here is a startup sample:

PBRevealSampleObjc.zip

from pbrevealviewcontroller.

umairqureshi6 avatar umairqureshi6 commented on July 22, 2024

you can check that link now!

from pbrevealviewcontroller.

iDevelopper avatar iDevelopper commented on July 22, 2024

The segue from PBRevealViewController to MenuTableViewController (identifier: pb_left) in your storyboard must be a subclass of PBRevealViewControllerSegueSetController (not PBRevealViewControllerSeguePushController).

from pbrevealviewcontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.