lakshminarayana lakshminarayana - 2 months ago 13
iOS Question

How to make Background ViewControllers should be blur when open SWRevealViewController from any ViewController

When i open SWRevealViewContrtoller(Side Menu) from any ViewController(ex:HomeVC) at that time the Background ViewController(HomeVC) should be blur or darken.

Answer

Thanks Finally i got the solution .

In Home view controller make these changes.

-(void)initialSetup
 {
   self.revealViewController.delegate = self;
 }
- (void)revealController:(SWRevealViewController *)revealController didMoveToPosition:(FrontViewPosition)position
 { 
   if (position == FrontViewPositionRight) 
     {
       revealController.frontViewController.view.alpha = 0.5;
     }
   else
    {
      revealController.frontViewController.view.alpha = 1;
    }
 }
Comments