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


when open swrevealviewcontrtoller(side menu) viewcontroller(ex:homevc) @ time background viewcontroller(homevc) should blur or darken.

thanks got 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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -