Objective C Tap Gesture no working after frame resize -
Objective C Tap Gesture no working after frame resize -
i making ipad application screen split in half. each side contains container , each container holds uiview.
in left uiview have uiscrollview multiple elements (customs uiview) inside, grid scroll, , each element back upwards tap gesture. when tap each element work fine , behave suppose to. lets nslog(@"tapped!").
problem comes when resize either entire view holds scroll view or container so:
navigationvc.view.frame = cgrectmake(0,0, 338,768);
the tap stops working! if resize original frame, tap starts working again.
navigationvc.view.frame = cgrectmake(0,0, originalwidth ,768);
i thought problem elements re-arrange when resize scroll view, in fact not. frame beingness resized when swipe entire application either left or right.
edit:
behaviour diagram: http://i.imgur.com/4vkphlq.png?1
edit2: didnt figure out yet, see element bound's changing when frame resized.
got it!
problem when resized scrollview elements.bounds changing too. went digging why... anchor... started alter few properties on xib.
under "simulated metrics", changed "size" drop-down "freeform" (add 150, 45) "inferred".
forced size on initwithcoder, compiled, , worked.
thanks burhanuddin sunelwala trying debug me.
objective-c resize frame tap
Comments
Post a Comment