John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 989 forks source link

How can I add hover shadow on selected side menu item? #568

Open zcelaloglu opened 8 years ago

zcelaloglu commented 8 years ago

I just want to give a sign on selected side menu item if its already clicked when side menu is open

How can I figure out it?

iDevelopper commented 8 years ago

In your tableViewController, in viewDidLoad function :

    // Uncomment the following line to preserve selection between presentations
    self.clearsSelectionOnViewWillAppear = false
zcelaloglu commented 8 years ago

compile time error on "clearsSelectionOnViewWillAppear"

iDevelopper commented 8 years ago

What error?

vicky1787 commented 8 years ago

How about a ViewController ,I don't want the action to happen inside the shifted front view controller when the Side menu is opened , but just tapping on it should close the drawer back.

How to do this ???

My Class is CustomerViewController : MyBaseviewController and its not UITableViewController

zcelaloglu commented 8 years ago

@vickyrappier thanks for pointing out this issue I'm concerning this as well

vicky1787 commented 8 years ago

I fixed it with solution provided by the #hardluckbaby on stack link as below. You may provide an upgrade as I am using pods so can take the latest fix.

http://stackoverflow.com/questions/22601448/swrevealviewcontroller-remove-interaction-on-frontview-when-rearview-is-reveale

vicky1787 commented 8 years ago

Side menu for panic and settings

pod 'SWRevealViewController', '~> 2.3'

Pods that I used or if you wanna suggest anything different for Pods when upgrade as i was IOS 9.0 onwards. Great Component although so far that i saw and compared with. Good Job

iDevelopper commented 8 years ago

I wrote a little sample to illustrate this thread:

SWSample.zip

vicky1787 commented 8 years ago

Thanks John, I shall have a look and use the same. Appreciate your help.

Thanks,

Regards, Vicky S Dhas Contact: +65 9183 9203 Email :vickydhas@gmail.com/vickydhas@yahoo.co.in

On Wed, Apr 13, 2016 at 6:46 PM, iDevelopper notifications@github.com wrote:

I wrote a little sample to illustrate this thread:

SWSample.zip https://github.com/John-Lluch/SWRevealViewController/files/216865/SWSample.zip

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/John-Lluch/SWRevealViewController/issues/568#issuecomment-209363390

iDevelopper commented 8 years ago

I'm not John but a user like you!

iDevelopper commented 8 years ago

Another sample in Swift:

MapSample.zip

ghost commented 8 years ago

Thank You iDevelopper! Your sources help me very well.

iDevelopper commented 8 years ago

@azsha916 , you're welcome.