Problem ! How can I detect a swipe ?

Hello everybody,
I'm very newbe in objectiv-c. I fell in love with the Iphone, and I have decided to create a simple application.
But I'm facing some little problems. I just don't know how to detect a swipe, I have read the UITouch documentation but it didn't help me...
I have searched the entire web to get the answers but nothing. You are my last resort, please help me and teach me how how to code it.
Tx
Message was edited by: Fanou

I'm not sure what you searched for. My google for 'uitouch swipe' just revealed a lot of help.
Essentially you keep track of the touch events to determine direction, speed and duration.
http://forums.macrumors.com/showthread.php?t=532573 Has a decent example.

Similar Messages

  • How can I detect a certain text within a field within CASE using IF

    Dear all,
    for a transformation / generation of values receiving from R/3 into BW I try to
    manupulate three fields. I have a problem detecting a string in a field.
    I am using a CASE with several WHEN clauses on one field. Depending on the
    value, an IF is integrated. There I look into another field evaluating, if it contains
    a certain string. E.g. IF STRING CP 'xyz' OR 'abc'.
    System gives error for the locigal expression. I also tried CS, but same error.
    How can I detect a certain text within a field and which is the right logical
    expression.
    Many thanks in advance!!!
    Claudia

    Hi,
    Folow the blow example...
    May be it helps....
    DATA: hex1 TYPE string,
          hex2 TYPE string.
    hex1 = 'FFFF'.
    hex2 = '123FF'.
    IF hex1 CP hex2.
    ENDIF.
    Cheers,
    SImha.

  • How can I detect a dialog and respond?

    I'm having trouble doing something that's probably not that hard. I'm trying to "Print to PDF" a bunch of old AppleWorks documents. When you open a document created in AppleWorks v6 it opens right up, but when you open a document created in AppleWorks 5 you get a dialog box that says, "This document was created by a previous version of AppleWorks. A copy will be opened and "[v6.0]" will be added to the filename."
    Right now I open the file and then:
    tell application "AppleWorks 6"
            activate
            repeat while not (exists front document)
                    delay .2
            end repeat
    end tell
    When the dialog box pops up, there's no front document so the whole thing freezes until you hit OK. How can I detect this dialog box and dismiss it?
    Thanks
    PS
    When the box is open I ran this and got this result:
    /usr/bin/osascript -e 'tell application "System Events" to get properties of windows of application process "AppleWorks 6"'
    minimum value:missing value, orientation:missing value, position:436, 153, class:window, role description:dialog, accessibility description:missing value, focused:missing value, title:missing value, size:412, 123, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXDialog, selected:missing value, name:missing value, description:dialog, minimum value:missing value, orientation:missing value, position:8, 76, class:window, role description:floating window, accessibility description:missing value, focused:missing value, title:Starting Points, size:631, 189, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXFloatingWindow, selected:missing value, name:Starting Points, description:floating window, minimum value:missing value, orientation:missing value, position:4, 22, class:window, role description:floating window, accessibility description:missing value, focused:missing value, title:Button Bar, size:612, 51, value:missing value, help:missing value, enabled:missing value, maximum value:missing value, role:AXWindow, entire contents:, subrole:AXFloatingWindow, selected:missing value, name:Button Bar, description:floating window

    Hi,
    The simplest would be to set the application preferences in the script.
    Like this :
    -- *** set prefs ****
    tell application "AppleWorks 6"
          activate
          set oldPrefs to its preferences
          copy oldPrefs to tPrefs
          tell tPrefs
                set old version warning to false --doesn't show the old version warning alert  
                set converted file suffix to true -- append “[v6.0]” to documents converted from older formats
                set locked file warning to false
                set paint reduction warning to false
          end tell
          set preferences to tPrefs
    end tell
    -- *** end set prefs ****
    --**** your script, example ***
    set tfiles to choose file with multiple selections allowed
    tell application "AppleWorks 6"
          repeat with i in tfiles
                open i
                tell front document
                      -- do something
                end tell
          end repeat
    end tell
    --**** end  your script ***
    -- *** reset prefs ****
    tell application "AppleWorks 6" to set preferences to oldPrefs

  • How can i detect if my PC is not on Network..... Urgent Pls Help Soon !!!!!

    Hello Everyone,
    We all know whenever we try to connect to a PC which is not on network, we get UnKnownHostException etc..... by which we can detect that the corresponding PC is not an network(intranet/internet)
    But when i send a msg from my PC to my PC, it works fine even if the network is down. I hv provided my PC's IP address instead of using localhost or 127.0.0.1 which reduces the possibility that the msg will not be traversed thru the network.
    Any IDEA how this works.
    Is There any possible way by which i can detect that my PC is not on network or the PC to which i'm trying to connect is not on network .......
    Pls help me out, its really urgent as to be implemented in my Project
    Thanks In Advance
    Sahil Shaikh

    Hello Surtee
    I have developed a Messeging Service for the eCRM Apllication my company is developing and we r in the final stage of debugging.
    Now whenever a user sends a msg to a PC which is not on network, the messaging service automatically sends an Offline mssg to that PC. But know i want ot distinguish wheather the PC to which i'm sending the msg is not on network or am I not on network based on this i need to perform diff. actions, hence i wanted to know that how can i detect .......
    Pls see if u canhelp me out ......
    Thanks
    Sahil Shaikh

  • Hello guys I have a question,or rather a problem. how can I detach yourself iPhone operator Verizon USA? I mean as to call and what to say? I live in Ukraine, and the opportunity came up for to buy cheap 4S 16GB. but on Verizon. when I insert the original

    Hello guys I have a question,or rather a problem. how can I detach yourself iPhone operator Verizon USA? I mean as to call and what to say? I live in Ukraine, and the opportunity came up for to buy cheap 4S 16GB. but on Verizon. when I insert the original SIM card Verizon and I try to activate, says: (error occurred activation, if this problem happen again please call at +1................). this is the hour to use it through the R-SIM 9 pro. everything works нормальнои calls and Internet and SMS, but I want to officially unlock. beforehand thank you

    Well, you managed to find this support forum didn't you and you have an internet connection don't you?  Then if you have all these things, go and find the number by going to the Verizon website and it should not be hard to find the number.
    As for speaking English, this is not really our problem and it is surely something that you should have thought about before buying the phone in the first place.
    You also need to know that Verizon in the US is a cdma operator and if you purchased an iPhone 4s, then it should not be locked.  The Verizon 4s comes with a sim card tray that should be unlocked out of the box for use internatinoally on gsm networks, so all you should need to do is open the sim card tray and insert a sim card and you should pick up the local gsm network.
    A cdma phone does not actually use a sim card, so there would be no original sim card with the phone because when it is used in the US it will pick up the Verizon cdma network without a sim card.  The sim card is only for use on a gsm network which will not work in the US, but is designed to work outside the US.  Open the sim card tray and insert your own local sim card and the phone should work and should not be locked.
    Other than this, if you purchased the phone in the first place, it is the responsibility of the previous owner to cancel the Verizon contract.  This is nothing to do with you, so contact the seller and ask them.
    Other wise, go to the Verizon website and look up the number and call them.  As they are the phone company, ultimately, they are the only ones who can help you.

  • I want to install my photoshop 5.0 limited edition but the pc displays i should check if it is a 32 or 64 bit application. i changed my windows os  from xp to win7 64 bit (i think that is the problem) how can i run my photoshop on this system?

    i want to install my photoshop 5.0 limited edition but the pc displays i should check if it is a 32 or 64 bit application. i changed my windows os  from xp to win7 64 bit (i think that is the problem) how can i install and run my photoshop 5.0 le on this system?

    Kglad Creative Suite 2 is only applicable to individuals affected by the activation server shut down.  A complete list of affected software titles can be found at Activation server shut down for Creative Suite 2, Acrobat 7, and Macromedia products.

  • Help my hard drive is being taken up by about 200gb of "other" memory, i am running time machine on an imac does does cause the problem how can i get rid of all "other" memory

    my problem is that most of my imac hard drive is being taken up by 200gb of "other' memory
    i am running time machine does this contribute
    how can i get rid of all "other" memory
    thanks

    JKOL96 wrote:
    i am running time machine does this contributex
    Some, possibly, but shouldn't be a problem.
    how can i get rid of all "other" memory
    Much of it is OSX and other things needed to run your Mac.
    See The Storage Display for an explanation, and don't miss the link to Where did my Disk Space go?

  • It's an audio problem, how can i fixed it?

    hey, why my imac 10.7.4 suddenly don't give a sound. the volume icon cannot be click, it's an audio problem, how can i fixed it?

    this should only happen if you have a digital toslink connected to your audio jack.  is there a red light coming out of it?
    have you tried restarting the computer?
    does your system see your audio device in about this mac more info audio?

  • How can we detect a virus on our mac?, How can we detect a virus on our mac?

    We think we may have a virus from the USPS spam email.  How can we detect a virus on our computer?

    What makes you think there is a "virus"?  Any symptoms...?
    There are other types of malware (such as trojans) that can affect Mac OS X, but no viruses.  A trojan would have to trick you into installing something (the malware) by making you think it is something else.  You would be notified (by the system) that you are running a downloaded application for the first time, AND if something will be done to update your current system, you will be asked to authenticate (with your admin user name and password).  If something like that comes up when you don't expect it, you should be suspicious (and NOT authenticate).  Just opening an email won't do anything, even if it's an email that may affects Windows PCs.
    This free utility can scan your Mac for malware. 
    http://www.clamxav.com/
    Apparently, there is a version on the Mac App Store.
    http://search.itunes.apple.com/WebObjects/MZContentLink.woa/wa/link?path=mac%2fC lamXav
    In the past, when I bothered to run it a few times a year, the only things it found were junk emails that I had not bothered to delete with embedded malware, all of it aimed at Windows PCs.

  • My bookmarks are lost after turning off the computer unexpectedly (power problem),how can it recovers?

    My bookmarks are lost after turning off the computer unexpectedly (power problem),how can it recovers? Thanks a lot !!!!
    我的书签在电脑突然被断电之后全部丢失了,我该怎么办呢??谢谢啦!!~~~~

    This can also be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    * http://kb.mozillazine.org/Lost_bookmarks

  • How can i detect the windows version

    Hi,
    How can I detect the windows version from Forms 6i?
    I was used get_application_property(operating_system); But it only return MSWINDOWS, MSWINDOWS32, WIN32COMMON.
    Any function or way can return the exact windows version(98/ME/NT/XP)?
    Regards, Wing

    You may use Win_Api_Environment API call to get windows version.
    I have sample code on my home PC if you need code send mail at [email protected]

  • I have a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

     i have  a problem how can I solve it I want give permissions to groupA to edit the people picker and I want to restrict groupB to edit the people picker what is the solution boss.. in InfoPath form is it possible..

    Hi,
    To hide/disable controls based on user group in an InfoPath form, a solution is that we can call User Profile Service to check the group of current user, then hide/disable
    specific controls by setting some rules in form.
    Here is a demo with steps in details would be helpful to you:
    http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/
    More information about checking if a user is a member in a SharePoint group within web InfoPath 2010 forms:
    http://www.hishamqaddomi.ca/spg/index.php/sharepoint-2010/infopath-2010/65-checking-if-a-user-is-a-member-in-a-sharepoint-group-within-web-infopath-2010-forms
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I detect the lable of CD or hard drive?

    hi all
    How can I detect the lable of CD or hard drive?
    thanx ;)

    Hi,
    Not to my knowmledge... you must use JNI to access the OS methods for that.
    JRG

  • I went in you tube and watched videos on how to fix my headphone jack and its not the headphones cause when I look inside I see this little white costing in there I think that's the problem how can I fix it

    I went in you tube and watched videos on how to fix my headphone jack and its not the headphones cause when I look inside I see this little white costing in there I think that's the problem how can I fix it

    - Try cleaning out/blowing out the headphone jack. Make sure that y do not leave any foreign material or leave anything in the jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • الترجمة I have a problem how can I cancel all operations evaluated by so I can use the service again in the same payment method because Apple stuck processes evaluated by on my account and I can not purchase again

    الترجمة
    I have a problem how can I cancel all operations evaluated by so I can use the service again in the same payment method because Apple stuck processes evaluated by on my account and I can not purchase again

    If your CC was banned for fraudulent activity, you will need to use another CC. If the account was disabled, try changing the password to enable it at : https://appleid.apple.com
    Otherwise, try contacting the iTunes store via : https://expresslane.apple.com , choosing iTunes and then iTunes store and from there selecting the topic as it pertains to your query.

Maybe you are looking for

  • How do I share iTunes access privileges with another user on my mac?

    My wife and I use the same Mac. I recently created a separate user account for her after upgrading to Mountain Lion (so that we can get full functionality out of the new features). I gave her user account full administrator access as well as read & w

  • Dynamic Tree and TreeNode Issue

    I am using JSC2 (060120) on Win2K pro, exporting the WAR and running in JBoss 4.0.3 running under JDK 1.5.0_04. I am trying to dynamically build a tree as the user clicks on nodes and am not having success following the example at http://developers.s

  • DMVPN GRE over IPSEC Packet loss

    I have a hub and spoke DMVPN GRE over IPSec topology. We have many sites, over 10, and have a problem on one particular site, just one. First off I want to say that I have replaced the Router and I get the same exact errors. By monitoring the Termina

  • Problems activating Adobe Viewer

    I recently purchased an e-reader a LEGGO from IBS Italy.  I have purchased two books but I can't download them as they require me to active the device by using my Adobe account.  There is provision for this on the e-reader.  I tap in logging  in with

  • OAM11g - How to perform direct login without accessing protected resource?

    Hi, I think this should be a common requirement as website needs to provide a direct login page. The OAM Documentation seems focus on the flow of starting from accessing protected resource then redirect to login page. How can we perform direct login?