UIScrollView - Scroll, Zoom, and Touches?

Im having an issue with a UIScrollView that I cannot figure out.
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.
I've got an app where I have a ViewController whoes view (MyScrollView) is a custom view inherited from a UIScrollView.
MyScrollView implements touchesShouldBegin, touchesMoved and touchesEnd.
I add some subviews (UIImageViews) to MyScrollView.
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. in thouchesmoved, I apply my changes to the selected subview.
I also have MyScrollViews delegate set (the viewController), and have implemented the two functions needed to zoom.
Now, here is the weird thing. 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.
any thoughts as to why I cant get both working at the same time?

Since MyScrollView is a subclass of UIScrollView, you need to manually call the touchesMoved for the UIScrollView parent object so that it can do its default scrolling behavior. When you commented out your custom touchesMoved, then the message was automatically being passed to the UIScrollView's touchesMoved method.
At the end of your touchesMoved implementation, put
[super touchesMoved:touches withEvent:event];
Assuming "touches" and "event" are the names of arguments in your function.

Similar Messages

  • Tabs for Point & Click, Scroll & Zoom, and More Gestures do not show.

    Hi all
    Had to reformat my drive and install a fresh copy of lion but I can not see the  tabs for Point & Click, Scroll & Zoom, and More Gestures in my preferences all I get is
    Anyone have any ideas ?

    Never mind. I found the answer. There is a selection in the Trackpad titled "When using gestures to scroll or navigate, move content in the direction of finger movement" that is what controls the setting.
    I actually found the answer after I posted the question. I tried all kinds of combinations in the new ask a question psuedo-search feature of the support site and nothing showed up. After you post, the site offers questions similiar to the one just posted. It was one of those that solved the problem. I guess I didn't get enough keywords correct for the right answer to show up. I just wish Apple would let you do a standard search instead of trying to be helpful. So far, I've not found any answers I was looking for with the new search tool. All answers have been found on different sites using Google. Grrrr. </rant>

  • Trackpad two finger scroll, zoom and rotation does not work, tried everything

    After I updated to lion my trackpad zoom, scroll and rotation feautres won´t work. I´ve tried tip I could find ( restarting, updating to mavericks, enabling them in system preferences, using terminal ect)
    I made an guest account as well, the features work there, but not on my main account and it´s starting to annoy me. Please help
    I have a macbook pro from 2010
    2,4 GHz intel core 2 du
    4gb 1067 mhz ddr3
    os x 10.9.1

    Try to reset the PRAM.
    http://support.apple.com/kb/PH14222
    If that doesn't do it, reset the SMC.
    http://support.apple.com/kb/ht3964

  • Touch Screen Scroll/Zoom

    Hello,
    My tablet is driving me insane and I'm hoping that someone might be able to offer some advice. I use it mostly to read articles and so I scroll up and down a ton. The issue is that the tablet will often interpret my one finger scroll as a two finger zoom. It is very frustrating just because of how often it happens.
    I read that pinch zoom could be disabled through the mousw settings in the control panel but I have yet to find any options in my settinga for disabling this. There are no settings or tabs after 'Hardware' in the device settings and none of the touch or gesture settings seem to have anything related. Any suggestions would be appreciated.

    If you can't solve your issue and no one in the community can help, contact support to speak with a tech support agent at (800) 457-7777.
    - Peter

  • I am unable to zoom in or zoom out unless in full screen mode. I have tried with both my scroll mouse and with CRTL - and +

    I am unable to zoom in or zoom out unless in full screen mode. I have tried using my scroll mouse and also using CTRL - or +. This is only in Firefox. it works in IE.

    Some gestures have been removed in Firefox 4 and later.
    You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
    browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
    browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
    browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
    browser.gesture.pinch.latched -> <b>false</b>
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold(user set).
    *Preferences can be reset to the default or changed via the right-click context menu.

  • Link Zoom and Scroll Bar

    Hello
    I'm using Labview 8.0 an I have a small expirence with Labview
    I got 5 Waveformcharts with different ranges, is it possible to link the zoom an scroll bar function, so that i could zoom in one graph an the other will change dynamicly like in Diadem "dynamic Zoom" and is it
    possible to control the visible area of the 5 charts with one scroll bar?
    Thanks

    Hello Densel,
    I searched for an easy implementation with the help of a property node, what I found is attached in my VI. It is just a solution to change the axes properties of x and y for one chart, but it should also works with more charts.
    Check my result, hope it helps you!
    Günther.
    Message Edited by gprossinger on 08-17-2006 08:01 AM
    Attachments:
    zoom programitcally in waveformcharts.vi ‏101 KB

  • Kensington mouse and Leopard, no control-scroll zoom function

    I see that this was discussed a year ago.
    http://discussions.apple.com/thread.jspa?threadID=1204297
    The Mouseworks driver is the same one--no update!
    Anyone have a solution? It was nice to be able to control scroll wheel and zoom the screen from time to time. Is there a 3rd party mouse driver that works with the Kensington mice?
    Thanks!

    You should find the software at path /Library/PreferencePanes/MouseWorks.prefPane -- that is in the root level Library folder, not a Library folder in a user's home folder. Any items in /Library/PreferencePanes/ should show up in "Others" in System preferences -- that much is normal.
    The actual OS extension software that drives the trackball at the hardware level should be at path /System/Library/Extensions/KensingtonMouseDriver.kext.
    The freeze is not normal. On my iMac G5, which has the MouseWorks software installed, the pointer responds during boot as would any standard USB mouse's pointer until the OS loads the MouseWorks software. At that point, the MouseWorks settings for buttons, acceleration, etc. kick in. This is very noticeable on my iMac because the acceleration setting in MouseWorks is much higher than the normal mouse tracking speed set in the Keyboard & Mouse system preference.
    You can check for the presence of the MouseWorks software using System Profiler: Open that application & click on the "Extensions" item in the list at the left of the System Profiler window. You should see two items in the resultant list on the right, "KensingtonMouseDriver" & "KMWUSBHIDMouse." Clicking on each of those in turn should produce info in the bottom pane of the window something like this:
    KensingtonMouseDriver:
    Version: KensingtonMouseDriver version 3.0r1
    Last Modified: 11/16/07 2:49 PM
    Get Info String: KensingtonMouseDriver version 3.0r1, Copyright (C) 2006 Kensington Computer Products Group, a division of ACCO Brands USA, LLC.
    Location: /System/Library/Extensions/KensingtonMouseDriver.kext
    kext Version: 3.0
    Load Address: 0xac8000
    Valid: Yes
    Authentic: Yes
    Dependencies: Satisfied
    Integrity: Unknown
    KMWUSBHIDMouse:
    Version: 3.0
    Last Modified: 5/24/06 3:14 PM
    Location: /System/Library/Extensions/KensingtonMouseDriver.kext/Contents/PlugIns/KMWUSBHI DMouse.kext
    kext Version: 3.0
    Load Address: 0xd39000
    Valid: Yes
    Authentic: Yes
    Dependencies: Satisfied
    Integrity: Unknown
    Following the same procedure, but clicking on the "Preference Panes" item in the list should generate something like this:
    MouseWorks:
    Version: 3.0r1
    Supported by: 3rd Party
    Visible: Yes
    Identifier: com.kensington.mouseworks.prefpane
    Location: /Library/PreferencePanes/MouseWorks.prefPane
    If you do not get something very similar (especially for the locations), it probably means the software has not been installed properly.

  • How do I turn off the alt scroll zoom?  When I'm in Adobe photoshop and illustrator using the pen tool, alt is utilized for another short cut.  I would like to use the alt command for the pen tool instead of zooming into the screen.

    How do I turn off the alt scroll zoom? 
    When I'm in Adobe photoshop and illustrator using the pen tool, alt is utilized for another short cut.  I would like to use the alt command for the pen tool instead of zooming into the screen.

    I tend to select things from left to right and every time I am moving in a downward right diagonal motion during lasso selection I am missing a clear view and I am tending to have a more sloppy selection.  All this does is slow me down since I need to go back and hit those areas again.  The big arrowhead just get's in the way.  The original lasso tool with the thin line and small active point at it's lower left was far better for me.
    I don't like turning the cursors to precise because I like to see the active tool icon where my cursor is and as the icon changes as I hold modifier keys down.  If I am forced to get comfortable with using pricise cursors I guess I will, but man, I've never had to do this in my 15 years of photoshop use...
    I would absolutely LOVE to find a way to get the old lasso icon -- without the arrowhead above it.
    Is there any chance this option could be inlcuded in cursor preferences?  I'd give much thanks, Adobe.

  • Disable phone site zoom and scrolling?

    I am just trying to design a phone site.
    It seems to fit on my Samsung S4 in Chrome.
    But I can still zoom into the mobile site version and that makes it possible to scroll horizontally to the right (o the left is not possible)
    and then the positioned elemnts seem to slide and you can see the unaesthetic right endign of the page.
    I have no elements outside the mobile layout. Also tryied some HTML Codes on my phone Master Page, I found on the web.
    But nothig seems to help. If I cannot solve ths, a mobile site inMuse seems nothimg more than a bad joke!
    Can somenone help me please?

    Thanks, but I tried these codes before and none of them worked for me!
    I tried both codes on my master page, but it is still possible to zoom and then scroll to the right.
    And after zoomng back, my page image isn't at the same position as it was before!
    So if it is not possible to solve this, then mobile phone sites in muse is nothing more than a joke! (Sorry!)

  • Are you serious that photoshop does not support touch zoom and rotate??!!

    I just spent thousands of dollars on a new cintiq 22hd touch and now people are telling me that touch zoom and rotate are not supported in photoshop when running it with a windows platform (only works with MACS)???!!! are you serious???!!! I just tested this out and its TRUE!!!  You can pan with touch but not zoom or rotate.  The zoom and rotate functions work in all my other programs BUT NOT PHOTOSHOP.  I even have the latest version of photoshop (CC), latest patch and all and nope! no multitouch support! 
    I dont know who im more pissed with WACOM or ADOBE.   Wacom's touch advertising was supposed to be their selling point! if you cant even use it with the most popular graphics program...err what's the point???  And Adobe should have provided support like what...AGES AGO...the touch tablets and cintiqs have been out for almost a year now! 
    HOW IS IT POSSIBLE THAT WE LIVE IN 2013 and the best graphic hardware IS NOT COMPATIBLE with THE BEST GRAPHIC SOFTWARE on an OS (windows) that like over 50% of the population use??!!
    UNBELIEVABLE!

    I do not have a cintiq however I down loaded the user manuals for the DTH-2242 and DTK-2241 and the Cintiq 22HD> the first two Interactive pen displays seem to support multi Touch where the Cintiq 22HD only seem to support touch strips.
    The ones with multitouch support show this in the user manuals. On windows standard gestures are always on and there is no TAB. I would not like that.

  • Random zooming and scrolling

    My system will randomly zoom and or scroll. This is not in Safari – it happens in Indesign, Illustrator, Photoshop and After Effects. Zooming seems totally unpredicatable. Scrolling – that is suddenly I'm being scrolled to somewhere way off to the side of my page, happens mostly when I'm dragging items around – usually when also holding shift or otherwise using smart guides for precise placement. Also often when I release them these items will suddenly jump to somewhere else. I use a Magic Mouse – Every single mouse click / scroll / zoom / swipe / click-somewhere-you-never-thought-of-on-the-mouse / swipe-with-11-fingers feature I can lay my hands on has been turned off. It's annoying, frustrating and really just downright crappy. I expect better from my Apple products. Does anyone have any suggestions / fixes ? (ideally not 'get a corded mouse' ). Thanks.

    Try another Mouse, even a cheap USB mouse... as a test.

  • HT1338 i have just downloaded safari version 6,it quits automatically and also when i zoom in it does scroll up and down smooth

    i have just downloaded safari version 6,it quits automatically and also when i zoom in it does not scroll up and down smooth...though i have tried to reset completely several times but still having this problem....please note this started since i have downloaded moutain lion

    Hey melthepest,
    Thanks for the question. I understand that your iPo classic is not displayed in iTunes when connected to your computer. The following articles include troubleshooting steps that may help resolve your issue, depending on the symptoms:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/TS1363
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    iTunes reports that "iTunes cannot recognize this iPod at this time"
    http://support.apple.com/kb/TS1416
    Thanks,
    Matt M.

  • Touchpad no longer scrolls up and down on Satellite A

    So my HD crashed and i have to completely install Windows and all the Toshiba stuff with it a new.
    All is well - except for one thing, my touchpad no longer scrolls up and down using the side of it in IE or Chrome, but it still works in SeaMonkey.
    My Computer technician tells me it's an issue with getting some new driver for the touchpad, and i think i had to do that already about a year ago when i still had my original HD running.
    So i went to the Toshiba.ch website and tried to find something.
    I found all their "verfication" stuff and got inside the system and it instantly returned about 45 drivers by the looks of my "un"-driving eyeys they all could have been for whatever, so i searched especially for "touch pad" and yes, there was one for my Synapsis touchpad and XP as well, so i downloaded it - or i should say i opened it in Win Zip and checked first on the "readme file - wow, that was some Portugese in there, and that's when i kind of begun to feel lost.
    I check in at Toshiba.ch, get a ton of drivers in my face i have no clue whether i am supposed to download them all or what, and when i finally pick what i think i need the whole thing seems to be in Portugese, what the crickey in the afternoon is this???
    Anyway, before i download and try to install stuff i have no clue about i was hoping someone would actually give me a better hint on what i have to do exactly to get my touchpad to scroll up and down again also in Chrome, IE and where ever else.
    I use Service Pack 3 on Win XP Pro and was told that's maybe why the old original driver for this laptop needs to be updated, but which file, where to get it, and how to properly install it please anyone???

    Thanks for that, you confirm what i actually found out myself in the meantime.
    The way i got this issue solved was that i first tried to download and install the Synaptics driver from the Toshiba site - that simply failed miserably, glad with no negative side effects at least.
    Nesxt i used what unfortunately is way easier that sites like the Toshiba overload, i used Google to simply find the Synaptics website and instantly got the link to their driver download - eh voila, that actually gave me a .exe file, not an endless array of zipped files like the stuff on the Toshiba site in endless language versions!!!
    This worked, tested everything out alread since a while.
    - Which now leaves me with the question about the second driver you mentioned,
    Alps Electric
    what is that one needed for??
    I have not seen this name on my lappy before, so totally unsure about whether it still needs this dispite things are working everywhere, i did not even have to go into the Device Settings of the Mouse / touchpad to change or rearrange anything in there after the direct download from Synapsis, but well informed is always best, so if you could let me know about that
    Alps thing would appreciate...

  • Magic Mouse: Is there and easy way to keep switching scroll on and off

    I'm afraid I'm not very adventurous with Magic Mouse. The only feature I use is One finger Scroll - with intertia. Its great for web surfing. Trouble is its a nightmare for programmes like illustrator and inDesign where the page leaps about in a crazy way at the slightest touch. So, I currently spend all day going to System Preferences - Mouse - to switch the Scroll feature on or off. Does anyone know a better way of doing this? Is there a keyboard command? Could I set something up in Automator? The ideal would be on the mouse itself: Two taps turns it on, two taps turns it off. I've just downloaded an app called BetterTouchTool which I though would be an answer to my prayers - but I can figure it out.
    Any ideas, anyone?

    Thanks Capfred
    I've tried switching off inertia - but I prefer it for websites. Inertia is much faster and more fun to use. Annoying thing is, I never had this problem with the old Mighty Mouse because it was easy to avoid touching the little scroll ball when I didn't want to. My body language is obviously not cut out for Magic Mouse because sometimes when I'm reaching for it my finger must slightly slide across it before I grip it firmly. This isn't a problem on most websites because the only option is to scroll up and down. But in Illustrator and inDesign, this causes my carefully centred page to go flying left or right and I have to use a keyboard command to re-centre it.
    I'm sure I can't be the only one to have this problem!

  • Quick launch buttons and touch functions not working post win7 upgrade

    I have several problems that I think are related.
    1) When I rotate the screen and then bring it close (as in flat) to the keyboard, the screen goes blank. There is no key combination I can find that restores the screen. Putting it back in notebook orientation doesn't do anything either. Only thing to do is a hard reboot.
    2) the quick launch buttons on the screen edge are not functioning as follows:
    a) the hp mediasmart button (the one with the wave) doesn't work
    b) the screen rotation button produces the same problem as 1) above
    c) the third button which looks like either gears or a sun (I don't know what it should do) brings up the windows mobility center, where I have found problem number:
    3) On tablet PC settings, the display tab, there is one display: 1. mobile PC display
    on the same tab, there is a setup button. The next screen says:
    pen input
    touch input
    Regardless which one I select, on the following screen (where it says Press this screen with ....) when I press with either my finger or the pen, nothing happens. Which seems like either:
    it thinks another screen is active or
    the touch components are completely non functional.
    4) Not surprising, the touch functions are completely non-functional
    I have installed all of the drivers for this TX2-1025dx for Win7(64bit) per the HP support/drivers page.
    Not all of them resulted in a clean install. 
    Here are other drivers that I had problems with (meaning that I got an error message, it failed, it had to be done more than once, something else broke, etc.)
    AMD AHCI  - started catalyst installer then failed
    Authentic fingerprint driver - "dpinst64 not marked for installation"
    Ntrig Duosense - had to do this one multiple times to get the fingerprint reader to work
    HP Mediasmart MVP - hung in CMD
    I have checked that all of the startup services are actually enabled in msconfig including quick launch buttons, hpwuschd, and media smart. Nothing is disabled in services.
    I have reinstalled the quick launch buttons driver for this product from December 2009. (There is an earlier version from November.)
    I installed the bios upgrade (before win7, actually) it is currently F.25
    I have also eliminated EMF possibilities.
    I have searched the forums, and while I have found some interesting clues, I don't see anything like this - at least with a solution.
    Any assistance would be greatly appreciated as this thing is quite useless to me as it currently functions. It is not a tablet anymore.
    TIA

    [knock knock] Helloooooo??!!??
    Installed 6.50.9.1, which is in between the last two quick launch button (QLB) drivers (that did not work). Also fixed the lightscribe and mediasmart DVD installs. Same problems, no touch or pen, and a new bug I discovered with qlb
    First, if you search for tablet in the start menu, there is a selection to set the tablet buttons to perform certain tasks. When you run that, it says that teblet buttons are not installed on this pc. Doesn't matter if QLB is installed or not - same error. Hmmmmm. Check with your pc manufacturer..... I think I am doing that. I am starting to feel like I am working for HP.
    Next finding: Using mobility center, I found that if you orient the screen to landscape for the slate config, and then rotate the screen, it does not go blank. However, if you rotate the screen back to notebook, it goes blank. And of course it keeps that upsidedown config when you reboot, too. So, the way to recover from that (because you really need a keyboard if you don't have a working pen and touch takes 30 sec to respond) is to keep trying to get touch to orient the screen back to landscape for notebook. Then rotate the screen to landscape for notebook. And uninstall the QLB driver that doesn't work and reboot. But after that, touch and pen did not function.
    Since touch and pen had previously been restored when I uninstalled QLB, I reinstalled MVP and smartmenu coz they were the actions that I took the last time before touch and pen returned. Didn't work this time, tho.
    I decided to do a system restore back at the point that I had used HP Advisor, since that was the last time I made note that pen and touch were working. Restore failed because a sfi.dat file was not found (and search didn't find it anywhere either). I tried 5 different restore points, before and after that one, and they all failed. But the first time around, I had touch on the logon screen, just not after windows started. The next time, I had touch but not pen. The next time, I had touch and pen, but only for a period of time (I think HP Advisor may have been the intervening event) before they stopped working.
    Oh, and HP advisor does not appear to be actually installing the things on the action list. That could be an issue with Comodo, but it really looks more like an issue with that "mother may I" message from Windows asking for permission to run the program. Often as not, windows reports that the program is not responding. Closing the program with that dialog box actually gives it the kick in the knickers it needs to complete.
    A not so great workaround is to use the mobility center to orient the screen when you want to put the thing in slate mode. You can pin it to the task bar (with a little fiddling).  Touch is extremely slow to respond in slate mode. For example, it took about 3 minutes to get the screen oriented back around to notebook config, which is 4 "clicks" if things are working right. Pen works sort of OK (although I haven't tried any writing) . Gestures for scrolling do not work.
    I am done with the troubleshooting until someone comes up with other targeted ideas.I have been keeping detailed chrono notes.
    Again, I hope the information here leads to a solution. This unit is not a functional tablet and I don't want to stay with Vista, neither should I have to since this is supposed to be compatible.

Maybe you are looking for

  • Problem with printing pages on my site...

    See one of the newsletters on my website at http://www.jonbarron.org/newsletters/06-23-2008.php. Now try printing or "print preview" that same page. You will see when you view it in print preview or print it out it only prints the 1st page and then s

  • Using Jboss Seam in an OC4J

    Good morning everyone, i need some help because i've tried to use the jboss seam framework in a web app to run in an OC4J server using jdeveloper 10 and when i execute the start page i get the following stack trace: GRAVE: [current-workspace-app] Se

  • Application Ear file deployment on Oracle 9ias(9.0.3)

    Hi, I'm trying to deploy an application (JSP + BC4J) under Oracle 9ias using the Enterprise Manager (EM). No error occurs during the process but I can not load the application with internet explorer. the following message appears : "Not Found The req

  • JCRMI Client Application - error on launching

    Hi, all! I have compiled JCRMI Client without errors, but during launching within Eclipse the message appears : "Could not resolve classpath container: com.ibm.bluez.jcop.eclipse.containers.cardconfig" What does it mean? How can I recover the error?

  • Can microsoft word documents be opened on ipad2

    Can microsoft word documents be opened on ipad2 please