Touch move base rotating Wheel Image

Hello Anybody,
I have an application and developing for iPhone OS 2.2 . I use UIImageView and I want rotating my image with touch move position .
I load image into the view that like image is 'Span Wheel'. When i Touch move on the image it is rotating on Touch move position with speed of touch.
When I touch move low speed it will rotating short then stop automatically speed of touch move. If it is possible for do that.....
Any another way for do that ... Any default method availabe in the Objective -C
Could any one help for me . I am very confuse this concept .. Please give me solution with example....... I am new iPhone developer programmer ........
I am trying below the way..
- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
timerIsCountingDown = NO;
currentTimerValue = 0;
NSArray *myTouches = [[event touchesForView:self] allObjects];
UITouch *t = [myTouches objectAtIndex:0];
Begantime = t.timestamp;
CGPoint pointInView = [[touches anyObject] locationInView:self];
touchXStart = pointInView.x;
touchYStart = pointInView.y;
- (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event
degree = [self angle:touchXStart y0:touchYStart x1:touchXEnd y1:touchYEnd];
timerIsCountingDown = YES;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
//[UIView setAnimationDuration:0.05];
[UIView setAnimationDelegate:self];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
// timer = [NSTimer scheduledTimerWithTimeInterval: 0.02 target: self selector:@selector(hadleTimer:) userInfo: nil repeats: YES];
angle += 10;
// if (angle > 6.283)
// angle = 0;
CGAffineTransform transform=CGAffineTransformMakeRotation(angle);
imageView.transform = transform;
imageView.alpha = 1.0;
[UIView commitAnimations];
- (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
NSArray *myTouches = [[event touchesForView:self] allObjects];
UITouch *t = [myTouches objectAtIndex:0];
Endtime = t.timestamp;
CGPoint pointInView = [[touches anyObject] locationInView:self];
touchXEnd = pointInView.x;
touchYEnd = pointInView.y;
CGFloat time = Begantime - Endtime;
CGFloat speed = distance / time;
NalaN

There is a gravity behavior applied to the cell, change that to a positive numer.
Peter

Similar Messages

  • My video was recorded on my I phone 4, the camera was held sideways for a horizontal view, but loads in I movie vertically.  How can I rotate the image so it is horizontal?

    My video was recorded on my I phone 4, the camera was held sideways for a horizontal view, but loads in I movie vertically.  How can I rotate the image so it is horizontal?

    Drag the clip from your Event to your Project. Then use the Rotate, Crop, Ken Burns Tool on the Middle Toolbar to rotate it

  • Some strings for which expression pedal is used is recorded well but during esch playback I have to move the modulation wheel. How can I resolve to hear my instrument during playback without twikking on the wheel !

    Some strings for which expression pedal is used is recorded well but during esch playback I have to move the modulation wheel. How can I resolve to hear my instrument during playback without twikking on the wheel !

    I am having the same problems. My guess is that a lot of people are having the same problems and just living with it. Those of us who know where to go on the Internet come here to find a fix.
    It seems Verizon has some explaining to do. Maybe they should try Beta testing new software a little better. I would rather have to wait longer for something that works. I am sure that some manager or director said this is close enough, deploy it and we will see what happens. Well, you are seeing the problems. Time to fix your mistake.
    All of us are telling our friends about the problems. The longer this goes on, the more people we will tell about it.
    Wouldn't you rather us be telling our friends that their is an error in the new interface and that you are working hard to fix it?
    If you want to be up front about this, then just tell us. We are adults and can handle it. If you made a mistake, own up to it and give us some credit for doing your Beta testing in the field.
    Customer Service is all about telling the truth and if you made a mistake, admit it and lets move on with a fix. I do not want to be told again that I should be able to unplug it, power cycle it, try the on-board diagnostics, etc., etc.......
    I am going to be repsonding on a daily basis to keep this topic at the top of the list.
    Time to come clean. You will feel better Verizon.
    Let's talk tomorrow.

  • Rotate an Image by specified pixel

    Imaq Rotate.vi is to rotate an image around its center point (correct?).
    I need to rotate an image by a user-specified point in the image. What I have in mind is to expand the original image so that the specified point becomes the center of the new image, rotate this new image, and trim the image back to its original size. Is this the right way to do it? Or I am making it too complicated?

    All right. First, do you want your "selected point" to have the same absolute coordinates in your new image as in the original? If yes, keep reading. If no, all that follows is irrelevant.
    In the following discussion, you need to bear in mind that I have not used NI Vision stuff, but the Vision functions seem to be very straightforward.  It seems NI has made it easy for you.
    The first thing you have to do is determine the X,Y coordinates of the point you want to rotate around ("selected point"). I'll leave that to you, since you've got to pick a point somehow.
    From the dimensions of the image, the coordinates of your point, and the angle you want to rotate your image through, calculate the X,Y vector that you will "move" your "selected point" along your coordinate system if you do a simple rotation.
    From the Image Manipulation subpalette of the Vision Utilities palette, use the IMAQ Rotate function to rotate your image hawever far you want.
    From the same subpalette, use the IMAQ Shift function to translate the entire image back along the vector you determined 2 steps ago to put the "selected point" back where it was originally.
    If that doesn't do it, it's probably impossible .
    I don't know how to break it down any better than that.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Rotate an image about it centre point

    Can some one please tell me how to rotate an image about its
    centre point in flex 2.0?
    I've tried using .rotation and looked at matrix
    transformation but I can't find a way to set the roatation to the
    centre of the image :(

    You can combine <mx:Move> with <mx:Rotate>
    effects together.
    http://livedocs.adobe.com/flex/201/html/behaviors_068_18.html
    ps
    I would LOVE to see example of applying matrix transformation
    to achieve the similar effect, cannot figure out yet by myself how
    to achieve it...

  • I am having problems opening pages in safari. the rotating wheel at the right end of the address window doesn't stop even after the page has filled up. then if i try to open other pages it gets stuck and won't open them.

    I started having problems opening pages today. When first open a page it seems to download the page OK, but the rotating wheel on the right-hand end of the address field keeps rotating after the page is completely filled up. Then if I try to open other pages it becomes slower and eventually stops filling-in the pages, while the rotating wheel keeps rotating.
    I wonder whether junk is being downloaded into my mac, or what is going on. Help will be geatly appreciated.

    When was the last time you emptied the Safari cache?
    From your Safari menu bar click Safari > Empty Cache
    If that didn't make a difference, go back to the menu bar click Safari > Reset Safari. Select the top 5 boxes then click Reset.
    And how much free space on the startup disk?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure you always have a minimum of 15% free disk space. Freeing Up Hard Disk Space - Mac Guides
    If emptying cache or resetting didn't help and there's enough free space on the startup disk, login to another user account, launch Safari. Same problems there indicates a system wide problem. Log back into your admin account so you can check the startup disk.
    Launch Disk Utility. /Applications/Utilities
    Select MacintoshHD in the panel on the left then select the First Aid tab.
    Click: Verify Disk (not Verify Disk Permissions)
    If the startup disk needs repairing, follow the instructions for Using Disk Utility to verify or repair disks
    I wonder whether junk is being downloaded into my mac
    Nothing should "download" to your Mac unless you initiate the download yourself. You can check the Downloads folder from the Safari > Window menu or your Downloads folder in the Finder.

  • When I try to move from one selected image to selecting a different image, lightroom (new install of Lightroom 5.5) will keep the previous image selected, so I always end up with two selected images - why?

    For example, I will select the first image in my grid view, then let's say I want to work on the fifth image. When I click on the fifth image, Lightroom leaves image one selected, as if I have held down the Command or the Shift key to select multiple images.  This is not what I expect. Then I am forced to command click the image I no longer want selected - this happens every time I try to move to any new image - the previous one(s) stay selected.  I have tried a reboot of my machine but still this happens.  Also, as a further bug, if I leave my grid with no images selected at all, after a few seconds Lightroom automatically selects the first two images in my library and highlights them - without my even pressing a key!  This is really weird behaviour. It's really frustrating as I like to use my keyboard arrow keys to move through my library of images, but when Lightroom keeps two images selected it just ping pongs between those two images.  I deselect and try to move on, and it again leaves the previous image selected!  By the way - I am not in Compare mode while this is happening - just in standard browsing of the library...  Help please!
    kind regards,
    oMac

    For example, I will select the first image in my grid view, then let's say I want to work on the fifth image. When I click on the fifth image, Lightroom leaves image one selected, as if I have held down the Command or the Shift key to select multiple images.  This is not what I expect. Then I am forced to command click the image I no longer want selected - this happens every time I try to move to any new image - the previous one(s) stay selected.  I have tried a reboot of my machine but still this happens.  Also, as a further bug, if I leave my grid with no images selected at all, after a few seconds Lightroom automatically selects the first two images in my library and highlights them - without my even pressing a key!  This is really weird behaviour. It's really frustrating as I like to use my keyboard arrow keys to move through my library of images, but when Lightroom keeps two images selected it just ping pongs between those two images.  I deselect and try to move on, and it again leaves the previous image selected!  By the way - I am not in Compare mode while this is happening - just in standard browsing of the library...  Help please!
    kind regards,
    oMac

  • Computer will not boot up; only rotating wheel. OS 10.7 iMac

    computer will not boot up, only rotating wheel. OS 10.7, iMac

    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partitiion & use Disk Utility from there to Repair the Disk, then Permissions.
    Re-install if that doesn't work.

  • How do i rotate an image in keynote?

    Im trying to rotate an image in keynote bc im making a collage and i dont want all my images straight up and down. Does anyone know how to do that?

    Nevermind i figured it out =)

  • Ipad won't get pass rotating wheel when starting up

    My ipad (64 Gbyte, several years old with cellular) won't start up . It stays in the displayed apple state for a very long time, then it goes to the rotating wheel state then goes back to the apple.
         I tried to syn it with itunes (mac version).  I never get to the pass key phase.  It keeps going back to the apple.
         What can I do?
         Thank you for your help!
         chhenden

    Did you try rebooting the device?
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    You might want to try restoring using recovery mode.
    http://support.apple.com/kb/ht4097

  • 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();

  • Hello everyone, My iphone 5 runs IOS7. It can only rotate when the iphone is already in the sideways, but can not rotate up itself when I turn iphone up. I must tap the assistive touch button to rotate it. This is inconvernient for me.How can I fix?

    Hello everyone, My iphone 5 runs IOS7. It can only rotate when the iphone is already in the sideways, but can not rotate up itself when I turn iphone up. I must tap the assistive touch button to rotate it. This is inconvernient for me.How can I fix?

    Took my phone to the Apple store this week and they told me it was a hardware/screen malfunction. They replaced the screen for free since it was under warranty. Now it works fine again!

  • Is it possible to make a movie from sequence of images in JMF?

    I am in need of make a movie from image sequences created from YCbCr(YUV) values. Is it possible to make a movie from sequence of images in JMF?

    yes, it is.
    at www.java.sun.com in the JMF session there are several examples about your problem!
    cheers
    thomas

  • Actions menu wheel image and Go button image

    Hello ,
    In APEX 4 Interactive Reports, the actions menu wheel image and the go button are coming as html buttons instead of the wheel image and go button image.
    Is there a way I can rever to the old wheel img and go button .
    Thanks,
    Dippy

    Within the IR, under Search Bar, you can set Actions Menu Image to '/i/ws/action_32x24.gif' - this is the green wheel but does not have little arrow. I will contact our image guru and see if the old one is sitting somewhere. As for 'Go', this does not support an image but you can change the word if you need to (using Search Button Label) and set a button template to match your application.
    -- Sharon

  • Partial rotation of images when importing...

    I'm wondering how to stop Lightroom from "squaring up" my images when I import them.  Attached is a screen shot to illustrate.
    I also can't find any consistentency, if I import the same image three times it will be as above twice but not on the third time!
    I'm wondering if this is a metadata thing?
    BTW camera is a Nikon D600.
    With thanks in advance,
    -Simon

    If this is only happening to a few of the images on import it is most likely something related to your camera. If ALL of the Imported images exhibit the issue then there are two things in LR that could cause this to happen:
    1) You are applying a Develop preset on Import that has  Lens Corrections> Manual> Rotate tool setting other than '0.'
    2) Your LR 'Default Develop Settings' has a Crop Angle tool or Lens Corrections> Manual> Rotate tool setting other than '0.'
    To check this import one of the images from CF card that shows the rotation. Examine the Crop Angle tool and Lens Corrections> Manual> Rotate tool settings to determine which one is being applied. From inside the Develop module with the imported image still rotated hit the master 'Reset' button at the bottom of the right-hand Develop panel. This applies your LR 'Default Develop Settings.'
    a) If the image is still rotated you may have inadvertently updated your LR 'Default Develop Settings' in the past with the image rotated. To correct this simply hit the master 'Reset' button, reset both the Crop Angle tool and Manual Rotate tools to '0,' go to toolbar Develop> Set Default settings, and select 'Update to Current Settings.'
    b) If the image is not rotated you are probably applying a Develop preset that was inadvertently created with the image rotated. You will need to recreate this preset making sure Lens Corrections> 'Transform' is unchecked. This is the only Develop preset setting that will rotate the image as in your example.
    If neither a or b fixes the issue you can try resetting your LR Preferences file:
    http://members.lightroomqueen.com/Knowledgebase/Article/View/1148/198/how-do-i-delete-the- lightroom-preferences-file

Maybe you are looking for