ios - Slide menu as facebook app -


i have found code slide de view , put viewcontroller don't wanna put viewcontroller, view need add slide menu in same viewcontroller. need add uiview in underleft slide.

obs.: i'm not using storyboard on project. need add uiview in slidingview

here code thats add viewcontroller:

  - (void)viewwillappear:(bool)animated {   [super viewwillappear:animated];    // shadowpath, shadowoffset, , rotation handled ecslidingviewcontroller.   // need set opacity, radius, , color.   self.view.layer.shadowopacity = 0.75f;   self.view.layer.shadowradius = 10.0f;   self.view.layer.shadowcolor = [uicolor blackcolor].cgcolor;    if (![self.slidingviewcontroller.underleftviewcontroller iskindofclass:[menuviewcontroller class]]) {     self.slidingviewcontroller.underleftviewcontroller  = [self.storyboard instantiateviewcontrollerwithidentifier:@"menu"];   }    [self.view addgesturerecognizer:self.slidingviewcontroller.pangesture]; } 

i think using ecslidingviewcontroller...

underleftviewcontroller property , refers view controller.

you have create new class inherits uiviewcontroller , instantiate it. assign underleftviewcontroller

myviewcontroller *vc = [[myviewcontroller alloc] init]; self.slidingviewcontroller.underleftviewcontroller  = vc; 

other way, if don't want create new class can declare basic view controller , assign underleftviewcontroller

uiviewcontroller *vc = [[uiviewcontroller alloc] init] //settings vc self.slidingviewcontroller.underleftviewcontroller  = vc; 

Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -