ios - Why would all views in a view have userInteractionEnabled set to NO -


i have view , unknown reason, it's not receiving touches. when debugged view, i've found out views' userinteractionenabled set no. problem that, haven't set anywhere; neither in interface builder (triple checked) , code. problem started when first created regular uiviewcontroller in interface builder, without subclass or custom code. know it's near impossible tell without code samples, project heavily complicated, , i've said, problem appearing in regular uiviewcontroller (no subclass) i've set in interface builder, there no relevant code mean anything. rest of app works fine, though.

what can possibly cause views in regular, default view controller become userinteractionenabled = no?

found answer myself after traversing window's recursive description more carefully. had scroll view, , inside that, content view, , other views inside. i'm on pure auto layout, scroll view's content view needs calculate it's own intrinsic size. using placeholder height content view in interface builder, make editing interface visually easier. apparently, forgot connect last view inside content view bottom of content view constraint, resulting in content view having height of 0 (though still displaying doesn't have clipping enabled). when it's size 0, calculating userinteractionenabled no automatically without being explicitly set no. i've added required bottom constraint , problem went away.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -