How to use touch swipe?

I want to use touch swipe up/down, left/right. Unfortunately I can not figure out the Objective-C code to use it. Any sample code available?
Any multi-touch swipe be capable?

Have you looked over [UISwipeGestureRecognizer|http://developer.apple.com/iphone/library/documentati on/UIKit/Reference/UISwipeGestureRecognizer_Class/Reference/Reference.html]? There's sample code in the [Event Handling Guide for iOS|http://developer.apple.com/iphone/library/documentation/EventHandling/Conce ptual/EventHandlingiPhoneOS/Introduction/Introduction.html#//apple_ref/doc/uid/T P40009541]. - Ray

Similar Messages

  • How to use touch start, touch move, mouse down, mouse move to move elements in edge

    How to use touch move and mouse move events events to move elements n edge?

    Here is my code for a vertical carousel for mouse and touch interaction.  it's not perfect, but it does the job.  change from Y to X for horizontal path.  past at Stage.compositionready event.
    // these are my elemens
    var temp1 = sym.getSymbol("vmenu2").$("tvchannels").position().top;
    var temp2 = sym.getSymbol("vmenu2").$("videosondemand").position().top;
    var temp3 = sym.getSymbol("vmenu2").$("radiochannels").position().top;
    var temp4 = sym.getSymbol("vmenu2").$("music2").position().top;
    var temp5 = sym.getSymbol("vmenu2").$("info").position().top;
    var temp6 = sym.getSymbol("vmenu2").$("vrtour").position().top;
    var temp7 = sym.getSymbol("vmenu2").$("weather").position().top;
    var temp8 = sym.getSymbol("vmenu2").$("clock").position().top;
    var temp9 = sym.getSymbol("vmenu2").$("settings").position().top;
    var tempa = sym.getSymbol("vmenu2").$("tvchannels").height();
    var tempb = 200;
    var tempdiff = temp2 - temp1;
    var y1=0;
    var y2=0;
    var t = 0;
    $(document).bind("touchstart", function(e) { 
      e.preventDefault(); 
      y1 = e.originalEvent.touches[0].pageY;
      temp1 = sym.getSymbol("vmenu2").$("tvchannels").position().top;
      temp2 = sym.getSymbol("vmenu2").$("videosondemand").position().top;
      temp3 = sym.getSymbol("vmenu2").$("radiochannels").position().top;
      temp4 = sym.getSymbol("vmenu2").$("music2").position().top;
      temp5 = sym.getSymbol("vmenu2").$("info").position().top;
      temp6 = sym.getSymbol("vmenu2").$("vrtour").position().top;
      temp7 = sym.getSymbol("vmenu2").$("weather").position().top;
      temp8 = sym.getSymbol("vmenu2").$("clock").position().top;
      temp9 = sym.getSymbol("vmenu2").$("settings").position().top;
      t = 1;
    $(document).bind("touchend", function(e) { 
      e.preventDefault(); 
      t = 0;
    $(document).bind("touchmove", function(e) { 
      e.preventDefault(); 
      //var x = e.originalEvent.touches[0].pageX;
      y2 = e.originalEvent.touches[0].pageY;
      //sym.getSymbol("vmenu2").$("tvchannels").css({top: y, left: x}); 
      if (t==1) {
        var y = y2 - y1; 
        var top1 = temp1 + y + tempdiff;
        var top2 = temp2 + y + tempdiff;
        var top3 = temp3 + y + tempdiff;
        var top4 = temp4 + y + tempdiff;
        var top5 = temp5 + y + tempdiff;
        var top6 = temp6 + y + tempdiff;
        var top7 = temp7 + y + tempdiff;
        var top8 = temp8 + y + tempdiff;
        var top9 = temp9 + y + tempdiff;
        if (top1<10) {
          if (top9>250) {
            sym.getSymbol("vmenu2").$("tvchannels").css({top: top1}); 
            sym.getSymbol("vmenu2").$("videosondemand").css(); 
            sym.getSymbol("vmenu2").$("radiochannels").css();
            sym.getSymbol("vmenu2").$("music2").css();
            sym.getSymbol("vmenu2").$("info").css();
            sym.getSymbol("vmenu2").$("vrtour").css();
            sym.getSymbol("vmenu2").$("weather").css();
            sym.getSymbol("vmenu2").$("clock").css();
            sym.getSymbol("vmenu2").$("settings").css();
    var d = 0;
    $(document).bind("mousedown", function(e) { 
      e.preventDefault(); 
      y1 = e.pageY;
      temp1 = sym.getSymbol("vmenu2").$("tvchannels").position().top;
      temp2 = sym.getSymbol("vmenu2").$("videosondemand").position().top;
      temp3 = sym.getSymbol("vmenu2").$("radiochannels").position().top;
      temp4 = sym.getSymbol("vmenu2").$("music2").position().top;
      temp5 = sym.getSymbol("vmenu2").$("info").position().top;
      temp6 = sym.getSymbol("vmenu2").$("vrtour").position().top;
      temp7 = sym.getSymbol("vmenu2").$("weather").position().top;
      temp8 = sym.getSymbol("vmenu2").$("clock").position().top;
      temp9 = sym.getSymbol("vmenu2").$("settings").position().top;
      d = 1;
    $(document).bind("mouseup", function(e) { 
      e.preventDefault(); 
      d = 0;
    $(document).bind("mousemove", function(e) { 
      e.preventDefault(); 
      //var x = e.originalEvent.touches[0].pageX;
      y2 = e.pageY;
      //sym.getSymbol("vmenu2").$("tvchannels").css({top: y, left: x}); 
      if (d==1) {
        var y = y2 - y1; 
        var top1 = temp1 + y + tempdiff;
        var top2 = temp2 + y + tempdiff;
        var top3 = temp3 + y + tempdiff;
        var top4 = temp4 + y + tempdiff;
        var top5 = temp5 + y + tempdiff;
        var top6 = temp6 + y + tempdiff;
        var top7 = temp7 + y + tempdiff;
        var top8 = temp8 + y + tempdiff;
        var top9 = temp9 + y + tempdiff;
        if (top1<10) {
          if (top9>250) {
            sym.getSymbol("vmenu2").$("tvchannels").css({top: top1}); 
            sym.getSymbol("vmenu2").$("videosondemand").css(); 
            sym.getSymbol("vmenu2").$("radiochannels").css();
            sym.getSymbol("vmenu2").$("music2").css();
            sym.getSymbol("vmenu2").$("info").css();
            sym.getSymbol("vmenu2").$("vrtour").css();
            sym.getSymbol("vmenu2").$("weather").css();
            sym.getSymbol("vmenu2").$("clock").css();
            sym.getSymbol("vmenu2").$("settings").css();

  • Hi, how to use touch pad (thinkPad T61) to scroll pages up/down, left/right? do I need any drivers?

    Hi, how to use touch pad (thinkPad T61) to scroll pages up/down, left/right? do I need any drivers?

    Hi daneeo, and welcome to the Lenovo User Community!
    In the Control Panel for your Mouse there should be an UltraNav tab. Under that tab are all the settings for the touchpad. Check to make sure scrolling is enabled.
    If you do not see an UltraNav tab in the Mouse Control Panel, download and install the UltraNav driver and utility:
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-66898
    http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-67226
    Hope this helps!
    I don't work for Lenovo. I'm a crazy volunteer!

  • How to use the multi-touch trackpad to adjust icon size?

    After I upgrade my OS X 10.6 to 10.9.2, I lost.
    Everyday I search the forum to look for the "feeling" of using Mac OS (migrate from windows to OS X10.6). The OS X 10.6 is just great.
    Now the questions, how to use the multi-touch trackpad to adjust icon size with simple pinch open or close gesture?
    Thank you.

    Welcome to Apple Support Communities. We're users here and don't speak for "Apple Inc."
    Using the multi-touch trackpad to 'zoom' in or out is temporary.
    The best way to permanently change icon size on the Desktop is to Command+click on an empty place on the Desktop screen and select Icon Size from the Desktop preference pane:

  • Does anyone knows how to use Assistive Touch in iOS 5

    Does anyone knows how to use assistive touch in iOS 5? Thanks.

    LiveCycle is J2EE based, so you the way to interact with LiveCycle would be using SOAP (web services).
    See the following documentation:
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?&accessible=true
    Jasmin

  • Resizing with my mouse using touch pad mac book pro does not work. how can i correct this problem?

    resizing with my mouse using touch pad mac book pro does not work. how can i correct this problem?

    See:
    * [/questions/777886]

  • How to use lock pattern for ur home screen in pod touch 4g(ios 5)

    how to use lock pattern for ur home screen in pod touch 4g(ios 5)

    Video formats:
    H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    Support for 1024 by 768 pixels with Apple VGA Adapter; 576p and 480p with Apple Component AV Cable; 576i and 480i with Apple Composite AV Cable (cables sold separately)

  • HT3390 OS X 10.9.2 how to use the Multi-Touch trackpad to adjust icon sizes in the Finder like previous OS?

    After I upgrade my OS X 10.6 to 10.9.2, I lost.
    Everyday I search the forum to look for the "feeling" of using Mac OS (migrate from windows to OS X10.6). The OS X 10.6 is just great.
    Now the questions, how to use the multi-touch trackpad to adjust icon size with simple pinch open or close gesture?
    Thank you.

    I might also add, you can run 10.6.8 Server in virtualization, if you need access to Rosetta applications:
    https://discussions.apple.com/docs/DOC-2295#ROSETTALION

  • How do I use "touch -t" to shift a batch of JPG timestamps by one hour?

    I'm trying to use "touch -t" to shift a batch of JPG created/modified timestamps by one hour to fix a time zone error. Is this possible?
    (I don't want to have to manually go to every file, and enter its current timestamp all the same way except for the month.)
    By the way, does using the "touch" command have the same JPG lossy effect as saving the file again?

    picky picky picky
    So you write a script that uses stat to get the current modification time and then add 60 minutes to it, with the date command, then then use that with touch against the file. Nothing to it
    #!/bin/sh
    find starting.directory -name "*.jpg" | while read file
    do
    ls -l "$file"
    mtimeinsec=$(stat -f %m "$file")
    mtimeplus_1H_in_touchfmt=$(date -j -r $mtimeinsec -v +1H +%G%m%d%H%M.%S)
    /usr/bin/touch -t $mtimeplus_1H_in_touchfmt "$file"
    ls -l "$file"
    done
    I've added an hour to the modification time. If you want to subtract an hour the +1H to -1H
    If you want to use shell wildcard selection modify the loop to be something like
    #!/bin/sh
    for file in *.jpg
    do
    ... the guts of the above while loop ...
    done
    If you just want to provide a list of files, you can change the *.jpg to a list of files. JUST BE CAREFUL OF SPACES IN FILE NAMES and directories
    If you want a drag and drop application, you can do that with some additional changes and either using Applications -> Automator with the "Run Shell Command" or using Platypus (free download, and a very nice utility). The script would change to:
    #!/bin/sh
    for file in "$@"
    do
    ... the guts of the above while loop ...
    done
    I have tested the very first script. I am fairly confident my 2nd to examples are right, but they are untested, so your mileage may vary.

  • HT201401 My lock button doesn't work, but I turned my phone off using touch assist. How can I turn it back on

    My lock button doesn't work.  I turned my phone off using touch assist - but now I cant turn it on.  Is there a way to turn my phone on when the lock button doesnt work?

    you can call it

  • How to use the mobileme application in my ipod touch? I already have my account.

    How to use that mobileme app? Is it true that if ever my lost my itouch, I could use that app to look where is it?

    Mobileme was replaced by icloud many months ago.  There is no more mobileme.
    IF you set up find my ipod on the ipod BEFORE it was lost AND it is on AND it is connected to wi-fi, then you may be able to get an approximate street address using icloud.
    iCloud: iCloud

  • Can not use TOUCH function on Nokia 6600 slide

    Can not use TOUCH function on Nokia 6600 slide-
    turned on sensor in phone settings, but when i touch the PHONE it does not work.
    Please, tell me how use this function or maybe my phone is out of order

    As long as your Sensor Settings are On within Menu, Settings, Phone, Sensor Settings then you just need to do the following -
    Tapping
    The tap function allows you to quickly
    mute and reject calls and alarm tones, and
    to display a clock just by double-tapping
    the back or front of the phone when the
    slide is closed.
    Select Menu > Settings > Phone >
    Sensor settings to activate the tap
    function and vibration feedback.
    Mute calls or alarms
    Double-tap the phone.
    Reject a call or snooze an alarm after
    muting it
    Double-tap the phone again.
    Display the clock
    Double-tap the phone.
    (If you have missed calls or received new
    messages, you must view them before you
    can see the clock.)
    Simply, if you double tap the screen when the slide is closed and you can see the clock appear then it is working.
    I hope this makes it clearer for you.
    Full Manual here - http://nds1.nokia.com/phones/files/guides/Nokia_6600_slide_UG_en.pdf

  • HT1695 I know nothing about how to use my new ipod and when reading the little bit of information in the folder that came with it, all I can do is turn it on, but it just powers down after a few seconds.  How do I work this thing?

    I know nothing about how to use my new ipod and when reading the little information that came with it, all I can do is turn it on.  Then in a few seconds it goes black, never having brought up a screen to do anything!  Help!  What do I do to get this thing going?

    You might consider connecting it to the charger and charging up the battery overnight.
    Please Get the iPod Touch User Manual for iOS 5

  • Firefox crashed before I could load my previous session - how may I restore it? I have backed up relevant session files, but have no idea how to use them.

    I was using Firefox shortly before deciding to restore my previous session (100+ tabs!), but the browser froze and went blank with the "Not Responding" label on top. This happened to me before, and I decided to just quit the session. I knew that I would lose the session I wanted, but I backed up the important session files found in the Mozilla directory (or at least whatever has "session" and "restore" in its name) while the browser was stuck (before quitting).
    What I'd like to understand is HOW TO USE these files to get my session back. I've tried replacing the session files with the back-up copies to no avail. Once long ago I managed to recover a session successfully, but with Firefox constantly changing, I may have lost touch with this.
    I use Firefox 34 and Windows 8.1, but I'll need others' help in identifying the session backup/restore files I need to use from the ones I backed up.
    I believe that the "recovery.bak" is vital, because it contains the tab/page names I was viewing.
    I would greatly appreciate whoever would help me in this, especially if they can teach me the proper methods to follow if this ever happens again (which most likely will!)

    You can look at this post in this MozillaZine forum thread about inspecting a sessionstore file and possibly extract URLs.
    *http://forums.mozillazine.org/viewtopic.php?f=38&p=12098147&start=60#p12098147
    You can open the Browser Console (Firefox/Tools > Web Developer).
    Paste the JavaScript code in the command line and press the Enter key to run the code.
    *Toggle the devtools.chrome.enabled pref on the <b>about:config</b> page to true to enable the command line
    *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line

  • How to use iCloud with my family's devices

    We're an Apple household with two Apple-using parents and three Apple-using kids.  We have two iPads, two iPod Touches, two iPhones and a MacBook Pro.
    Up unti now, I have used all of the devices with the same Apple ID, except for my wife's iPhone and MacBook, which use a different account because I'd purchased a MobileMe account so that her address book and calendar would sync. My iPhone, on the other hand, belongs to my company and data is sync'ed using Exchange, but the AppleID is still mine, there are no special corproate controls, and the Apple ID and apps I purchase belong to me.
    Should I simply migrate my wife to my AppleID, and use iCloud to sync her phone with the MacBook Pro, and leave everything else as-is? Then we will have a single AppleID for everything, and her Calendar and Address book will sync between her two devices, and FindMyiPhone will find everything with a single login? Are there any limits with using all of these iDevices on a single account?
    Thanks!

    iCloud: Backup and restore overview
    http://support.apple.com/kb/HT4859
    Check iCloud storage & backup space on iPad
    http://www.urltips.net/check-icloud-storage-backup-space-on-ipad/336/
    iCloud: Troubleshooting creating backups
    http://support.apple.com/kb/TS3992
    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

Maybe you are looking for