Cannot form weak reference to UIScrollView sub class (EXC_BAD_INSTRUCTION) when dismissing modal view
Cannot form weak reference to UIScrollView sub class (EXC_BAD_INSTRUCTION) when dismissing modal view Hi everyone I've been debugging this issue for quite some time but no luck so far. I am quite lost here and have no clue on the reason causing this crash and how to fix it. I will be very grateful if anyone can offer me some help on this, thanks a lot! I've prepared a sample project to demonstrate the issue at GitHub here. The scenario is as the following: There are two view controllers, namely the root view and modal view, each has a custom scroll view (class namely SubScorllView ) as sub view, and the modal view has a button for dismissing the modal view. SubScorllView The scroll views are sub-classes of UIScrollView, each with their corresponding delegate protocol, and their class hierarchy is as below: UIScrollView ∟ SuperScrollView .....∟ SubScrollView The app launches and runs in a very simple manner, in AppDelegate's didFinishLaunchingWithOptions: - (BOOL)applica...
