Wednesday, 15 January 2014

ios - Shadow is not Visible While Using With ECSlidingController -



ios - Shadow is not Visible While Using With ECSlidingController -

i'm using ecslidingcontroller in ios application. i've checked requirements , demo. ecslidingcontroller working how wanted, still couldnt add together shadow view.

here did, base of operations view controller (detailviewcontroller uiviewcontroller), trigger sliding view , name detailcontextviewcontroller (left or right not matter @ all):

-(void)viewwillappear:(bool)animated { [super viewwillappear:animated]; self.view.layer.shadowopacity = 0.75f; self.view.layer.shadowradius = 10.0f; self.view.layer.shadowcolor = [uicolor blackcolor].cgcolor; if (![self.slidingviewcontroller.underrightviewcontroller iskindofclass:[detailcontextviewcontroller class]]) { self.slidingviewcontroller.underrightviewcontroller = [self.storyboard instantiateviewcontrollerwithidentifier:@"detailabout"]; } }

and here detailcontextviewcontroller (this uiviewcontroller too):

- (void)viewdidload { [super viewdidload]; self.peekleftamount = 40.0f; [self.slidingviewcontroller setanchorleftpeekamount:self.peekleftamount]; self.slidingviewcontroller.underrightwidthlayout = ecvariablerevealwidth; }

i've added quartcore.h , checked tabbar's attributes, i.e clip subviews false. i've tried shadow tableview, changed self.view.layer self.tableview.layer , couldnt set shadow again.

is there wrong?

any help great.

i don't know set topviewcontroller, need set shadow parameters topviewcontroller. example:

self.slidingviewcontroller.topviewcontroller = newtopviewcontroller; newtopviewcontroller.view.layer.shadowopacity = 0.75f; newtopviewcontroller.view.layer.shadowradius = 10.0f; newtopviewcontroller.view.layer.shadowcolor = [uicolor blackcolor].cgcolor;

ios

No comments:

Post a Comment