dzenbot / DZNWebViewController

A simple web browser for iPhone & iPad with similar features than Safari's
https://www.cocoacontrols.com/controls/dznwebviewcontroller
MIT License
1.06k stars 181 forks source link

KVO crash during dealloc when dismissing modal #29

Closed chrisballinger closed 8 years ago

chrisballinger commented 9 years ago

*\ Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <BRCWebViewController 0x7f96e2e88220> for the key path "hidden" from <UINavigationBar 0x7f96e2e209d0> because it is not registered as an observer.'

When using this component modally I made a subclass and added a dismiss button in the navbar during viewDidLoad. After dismissing it will crash.

eugene-manaev commented 9 years ago

Still crashing.

cashmash commented 9 years ago

same

GabrielCartier commented 8 years ago

I'm getting similar errors, not exactly the same but it's when I present the class modally. It only seems to occur on iOS 8.

dzenbot commented 8 years ago

Just pushed version 3.2 including the fix for this issue.