giridharvc7 / VCFloatingActionButton

A Floating Action Button just like Google inbox for iOS
MIT License
296 stars 77 forks source link

Odd behaviour #28

Open cpoker87 opened 6 years ago

cpoker87 commented 6 years ago

Hi, First and foremost excellent component, but i have been witnessing some strange behaviour, but not able to simulate it, at times when i tap on the + button it disappears and nothing appears on screen, no tableview, no blur background, it just disappears and only the parent view on which it has been sub-viewed is visible. But if i rebuild the source by cleaning and building, at time it fixes it self. Not sure i can put my finger on the issue. Any help would be greatly appreciated.

perveznouman commented 5 years ago

Did you found out any solution for this? I am also facing the same issue.

giridharvc7 commented 5 years ago

Can u share a sample project that has this behaviour? May be I can look at it and find out what's wrong

perveznouman commented 5 years ago

I found out the reason. I was calling the method before execution of [self.window makeKeyAndVisible], which in turn I was getting _mainWindow = [UIApplication sharedApplication].keyWindow; as nil value. Thanks.