chidori-app / CDRTranslucentSideBar

Translucent Side Bar for iOS7
Apache License 2.0
141 stars 26 forks source link

iOS 10 crash "insertSublayer" #12

Open PREAlbert opened 8 years ago

PREAlbert commented 8 years ago

I found that the problem was coming from where the layer of one view (which had no superview) was being added to another. --http://stackoverflow.com/questions/39565424/

azeemOshaan commented 7 years ago

Did you find a solution?

azeemOshaan commented 7 years ago

Commenting line 76:

[self.view.layer insertSublayer:self.translucentView.layer atIndex:0];

and replacing it with below seems to have solved the issue [self.view addSubview:self.translucentView];