![]() ![]() ![]() If I comment out the touchesmoved implementation in MyScrollView, then MyScrollView will scroll and zoom like expected, but wont move the subviews (expected), but if I uncomment the touchesmoved implementation, then I can move my subviews, but MyScrollView no longer scrolls or zooms. I also have MyScrollViews delegate set (the viewController), and have implemented the two functions needed to zoom. in thouchesmoved, I apply my changes to the selected subview. constraints that layout the content relative to the content area of the scroll view and constrain its size. Click again to stop watching or visit your profile/homepage to manage your watched threads. ![]() You’re now watching this thread and will receive emails when there’s activity. ![]() When a touch event is handled, I compare the contentview to each of my UIImageView subviews, and if they match, then I save off which image is being moved. constraints that fix the frame (size and position) of the scroll view relative to its superview. UIScrollView does not give touches to subview if drag starts quickly. I add some subviews (UIImageViews) to MyScrollView. MyScrollView implements touchesShouldBegin, touchesMoved and touchesEnd. I've got an app where I have a ViewController whoes view (MyScrollView) is a custom view inherited from a UIScrollView. What I want to be able to do is to add images to a scrollview, and move them around by touching and moving them, while still being able to scroll/zoom the scrollview. Im having an issue with a UIScrollView that I cannot figure out. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |