John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 989 forks source link

Black screen appears sometimes #323

Open Crocotronic opened 10 years ago

Crocotronic commented 10 years ago

Hello, It seems that I'm the only one having issues like this? As the title already says I sometimes get a black screen on my iPhone 5 (iOS 7). Mostly at startup when panning from left to right. I set bounceBackOnOverdraw and bounceBackOnLeftOverdraw to false and a rearViewRevealDisplacement of 100. I also download some data from the internet at startup, but I think there shouldn't be performance problems. Do you have any experiences with this issue?

Best regards Benny

bouchtaoui-dev commented 9 years ago

I think this is a nasty bug that can't be easily fixed.

gintechsystems commented 9 years ago

Yeah probably, I am just not using the spring animation.

ohcrider commented 9 years ago

not using the spring animation is not this problem

gintechsystems commented 9 years ago

For me that is the only time I have the issue though...I know it is not the spring animation itself that is the issue. I will probably take a look at this again myself sometime if no one else gets to it. I would prefer the spring animation over the others choices.

mmarshak commented 8 years ago

I am getting random black screen in the app. Is the general consensus is to set toggleAnimationType to SWRevealToggleAnimationTypeEaseOut ?

Any other suggestions for root cause ?

Thanks, Marik

jramgit commented 8 years ago

I still have the issue and I have tried setting toggleAnimationType to SWRevealToggleAnimationTypeEaseOut but it didn't work. Any other suggestion? thanks

jovirus commented 8 years ago

I had the same experience with the black gap when I using gesture pan.

I found it out the reason was the rearpageviewcontroller is not initialized together with frontviewcontroller. And when I am using gesture, the animation is started BEFORE the rear view controller actually loaded.

my solution is I created my own class which inherited from the swrealcontroller class and I initialize the rearviewcontroller right after the front view controller initialized.

iDevelopper commented 8 years ago

Can you see this sample?

SWPanGesture.zip

jovirus commented 8 years ago

It looks fine, I have a lot of logic before the rear page view appears, I think it creates the problem too.

gintechsystems commented 8 years ago

@jovirus are you saying you have a solution?

iDevelopper commented 8 years ago

A solution for what?

jovirus commented 8 years ago

@gintechsystems you can try iDeveloper's example, it works fine.

gintechsystems commented 8 years ago

@jovirus thanks

takasurazeem commented 6 years ago

The issue is back guys...

bouchtaoui-dev commented 6 years ago

I recommend to use another Menu library. There's plenty of them, so...

iDevelopper commented 6 years ago

Yes, for example:

https://github.com/iDevelopper/PBRevealViewController

It's the most similar library, inspired by SW! Thanks to @John-Lluch