File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1423,11 +1423,18 @@ - (UIView *)rootView
14231423 // the "last visible" subview. But as I cannot be 100% sure of the original author's intent, I'll
14241424 // instead work around our use of DCIntrospect by saying if that class exists, skip it because it
14251425 // certainly isn't the UIView we want.
1426+ //
14261427 // Hrm. Seems that DCIntrospect installs a DCTextView under iOS7 and UITextView under pre-7. So
14271428 // we'll still use the presense of Class DCTextView as our key, then check for either TextView
14281429 // class at runtime.
1430+ //
1431+ // It also seems to do the same with DCFrameView
14291432 Class DCTextView = NSClassFromString (@" DCTextView" );
1430- if (!view.isHidden && (!DCTextView || (DCTextView && ![view isKindOfClass: DCTextView] && ![view isKindOfClass: [UITextView class ]])) )
1433+ Class DCFrameView = NSClassFromString (@" DCFrameView" );
1434+ if (!view.isHidden
1435+ && (!DCTextView || (DCTextView && ![view isKindOfClass: DCTextView] && ![view isKindOfClass: [UITextView class ]]))
1436+ && (!DCFrameView || (DCFrameView && ![view isKindOfClass: DCFrameView]))
1437+ )
14311438 {
14321439 result = view;
14331440 break ;
You can’t perform that action at this time.
0 commit comments