Why is my push animation so jerky?

I am in a 2nd level screen, and I want to animate the return to my main screen, but for some reason the animation is jerky, and doesn't go nice and smooth like card flipping animation. the code is:
+ (void) doPush: (id) arg_masterview
direction: (NSString *) arg_direction // e.g. MOVINGLEFT,VINGRIGHT
duration: (float) arg_duration { // e.g. TIME_TRANSITIONS
// Set up the animation and fire it off
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration: arg_duration];
[animation setType: kCATransitionPush];
[animation setSubtype: arg_direction];
[animation setTimingFunction: [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[arg_masterview layer] addAnimation: animation forKey: @"KEY_doPush"];
anyway it moves jerkly like, consistently and yet I am not doing anything in the background with other threads, etc.

I hope you don't mind me asking you this in your thread, but I think you might know the answer. If I have a UIViewController class that is the main view of the application and it contains two views (one of type UIViewController, and another of type UITableViewController, which both are wrapped in their own classes), and if I switch to one of the views when a button clicked by doing something like this:
if(self.View1 == nil) {
View1ViewController *main = [[View1ViewController alloc] initWithNibName:@"View1" bundle:[NSBundle mainBundle]];
self.View1 = main;
[main release];
UIView *theWindow = [self.view superview];
[self.view removeFromSuperview];
[theWindow addSubview:self.View1.view];
How can I return to this main view once I'm displaying View1 or View2?

Similar Messages

  • Why is the push button sticking?

    Why is the push button sticking?

    The person has to have an apple device and also has to be registered with iMessage, otherwise of you try to message them their name will turn red with a ! Next to the name saying they are not a registered use of iMessage.
    If your clicking on the name and typing in the box that pops up, you may be typing in the "subject" area. The iMessage has two sections to type in, the subject and content are. The bottom portion is the content area so if you have a message already started then use this area.
    The "subject" portion can be turned off also in Settings, messages
    It gives the option to turn off the subject portion here

  • Why Skype is pushing updates by force, even though I do not want them?

    Why Skype is pushing to force updates are forced to, even though I denied receiving automatic updates taking? Apparently, I have to throw the whole Skype landfill without doing anything.

    Are you sure about the more than one account? I'm running Windows XP Professional SP3. There is only ONE user account which I am using and I already checked "never check for updates". It just updated my Firefox automatically. I had to uninstall and download and re-install the older version again.
    Is there a fix by editing the Registry to actually disable the automatic updates?

  • Why my adobe edge animation taking load time too much

    Hi
    why my adobe edge animation taking load time too much.
    Plsease guide me.

    Hi, Rohan-
    Can you upload your file for us to take a look at?  It's hard for us to tell what's going on without taking a look.
    Thanks,
    -Elaine

  • Why don't gif animations work in Mail 3.4?

    I posted this earlier today on what I thought was the 10.5 Leopard section and as it turned out, it somehow posted in the Panther OS section. Doh! I'm sorry if you saw the other post and this is the second time you have read this today.
    I have read through the Mail discussions since the release of Leopard trying to figure out why gif animations do not work in Leopard Mail but they do work in Tiger Mail. I have read several explanations by several different people giving various reasons why they do not work. I have little faith in the answers I've seen to date as to why they do not work in Leopard Mail, as every now and then I get an email with an embedded gif +that does animate+ in Leopard Mail.
    If I download from Leopard Mail an animated gif file to my desktop that does not animate in Mail and then open that gif in TextEdit, it animates just fine.
    If I take some of the gif files that do not animate in Leopard Mail and publish to an iWeb page, they animate just fine when I visit the published page.
    If I open the same email that will not animate in Mail 3.4 in my .mac/.me account using Safari, the animations animate fine in the webmail.
    This one really gets me. If I forward an email that contains embedded gif files that are known to animate and that do not animate in Leopard Mail to my iPhone, +they animate just fine in iPhone Mail+. *Go figure!* Why should/would they animate in my little old iPhone 3G Mail but not my full sized Mac PowerBook, using the powerful mail application, Mail?
    According to some people who have posted responses as to why Leopard Mail does not support animations, Apple does not read the Discussion posts! I have made more than one trip to the Apple Genius Bar and asked why Apple does not read the Discussions and each time the answer has been, "Apple does read the Discussions. Apple employees do not reply to them." I really do think Apple reads these posts somewhere along the line and that software changes do occur because of some of the posts.
    Apple: If you are reading this, what gives with Leopard Mail and gif animations? Why the step back from gif animation in Tiger Mail to hit and miss (mostly miss) animation in Leopard Mail? Why not post an Article explaining why animations should not work/do not work in Leopard Mail?
    Joe

    I have used OS X Feedback on several occasions and have never heard back from Apple regarding any of my queries nor have I seen any software changes come about because of any of my queries.
    Apple doesn't respond to Feedback; they get way too many to have any time for that, but their engineering staff do keep track of what comes in and evaluates suggested changes all the time. I've made a good number of suggestions and I do get replies, but that's only because I have the email addresses for those who make the decisions, and I can't give those out.
    Just because you haven't seen changes doesn't mean they didn't consider your suggestions or that they aren't planning on incorporating a feature that you and others have suggested in the future. After all, the next version of OS X, Snow Leopard, isn't due until next year, and they're working on things for beyond that even now. Nothing has been finalized, so everything is open to more change after Snow Leopard.
    Mulder

  • Why isn't my animation working on my Volusion web page?

    Hi, first time poster, and new to Adobe Edge Animate.
    So I can't figure out for the life of me why my animation won't display at all when I put the code snippets into my sites HTML file.
    I'm using the e-commerce website called Volusion. This is what I've done:
    1. Created, tested (by pressing CTRL+Enter to preview in browser) and published my animation onto my desktop.
    2. Uploaded the files via FTP (Cyberduck) to Volusions directory.
    3. Inserted the following code snippet between the <head> tags of Volusions HTML file:
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="animated_nav1_bounce_normal_hover_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-22390483 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    4. Inserted the following <div> into Volusions HTML file where I want the animation to display:
    <div id="Stage" class="EDGE-22390483"></div>
    5. Refreshed the Volusion web page -- and that's where I'm lost, nothing happens, nothing appears. I don't know what I'm missing except that maybe I'm not uploading the files into the right directory in the FTP? Though I've tried uploading them in several different folders of the directory, I still cannot find a solution.
    The site I'm working on can be found here: http://www.globaldirectparts.com/default.asp
    The animation I've created is supposed to replace the two navigation menus at the top of the page.
    I've been racking my brain for 3 days trying to figure this out, so any help would be greatly appreciated. Let me know if anyone needs additional information. Thanks!

    Sorry, I'm new to all of this, learning-by-doing really. So if I understand you correctly, this is what I put:
    <iframe src="http://globaldirectparts.com/JFlores_2142/animated_nav1_bounce_normal_hover.html"><div id="Stage" class="EDGE-22390483"></div></iframe>
    And now my web page displays a little box with a "page cannot be found" message inside it.
    I also tried:
    <iframe src="/v/template_208.html"><div id="Stage" class="EDGE-22390483"></div></iframe>
    And that gave me the same box, but with my entire homepage scrunched up inside it, which I understand why that happened, but I don't know exactly what html address I'm supposed to put in the iframe.

  • Why no email push notification?

    I'm just wondering if there is a reason why the iPhone still lacks Push Notifications for email? Sure it pushes MobileMe, GMail etc, but only vibrates rather than telling me how many emails (like SMS/voicemail etc). Or, are there any apps that can do this? As unlocking the phone only to see it's junk mail, is a real pain!

    This is because it makes no sense, and you don't understand what push notifications are for or how they work. Push notifications are to substitute for lack of background function for 3rd party apps. That way you get a notice "pushed" from a server for news alerts, IM messages, etc. even though the apps they're directed to are closed. Since Mail is always functioning, there is no reason for a separate push notification for mail it already received.
    What you're really complaining about is that there is no display on the locked phone screen showing the email. SMS and VM show these, but they aren't "push notifications".
    If you want to suggest this to Apple, post it on the iPhone Feedback page. This is a user-to-user only tech support forum. No one here can speak for Apples decisions or policies.
    http://www.apple.com/feedback/iphone.html

  • Why are my scale animations jittery?

    If you look here: http://www.maderfilm.com/razer_tempSite/index.html
    For some reason when you mouse over the text navigations, the scale animations go jittery on all except the "About the Creators" button! But they all have the same animation applied!
    Does anyone kn ow why this may be happening?
    Thanks all!
    Aza

    copy and paste one of your mouseover/mouseout code.

  • Why would my title roll be jerky when I haven't changed any settings?

    I have just added a title roll(crawl left) with the default settings but find it is very jerky along the bottom of the screen.Any idea why this would be?
    Many Thanks

    Dougie,
    Have you done a Render of this new Title yet? If not, set the WAB (Work Area Bar) over the Duration of the Title, hit Enter, wait a moment and then play. Should be smooth. If not, something else is amiss.
    Hunt

  • Animated gif jerky in Safari 7

    I have a website with a page-loading animated gif, which stutters badly the first time a page is loaded. In subsequent re-loadings of the page the gif animation is smooth. This problem only occurs in Safari 7.0.1, not other browsers. In fact before I upgraded to Mavericks, it worked fine on Safari, too (Mountain Lion). Please help.

    I also noticed this today, and it seems that for some reason the frame rate of animated GIFs is limited to 10 frames per second, or a minimum delay of 100msec per frame. This animation should loop every second: http://www.dr-lex.be/tmp/Rotation1Sec.gif
    In Firefox it behaves correctly, but if you time it in Safari, you'll see that it takes 5 seconds per loop, because it has 50 frames.
    By the way, QuickTime Player can also play GIF animations and it plays them at the correct speed.
    It appears this bug is not in Safari itself, but somewhere deeper in some framework. The bug ID is 5815212.

  • Why does Quicktime X play 1080 jerky compared to VLC?

    Hi,
    I imported some 1920x1080 60i footage from my Canon HF G10 camcorder into Final Cut Pro X  (v10.0.3). No transcoding or proxy. It just rewrapped the MTS files into MOV.
    I located the video files (.MOV) in the Final Cut Pro Event folder (Original) and opened one video using Quicktime X (v10.1). The Inspector hud reports:
    Format: 'avc1', 1920 × 1080, Millions
    16-bit Integer (Little Endian), Stereo (L R), 48.000 kHz
    FPS: 29.97
    Data Size: 155.7 MB
    Data Rate: 24.10 Mbit/s
    Current Size: 1,920 × 1,080 pixels (Actual)
    When I play the video in Quicktime X it is jerky. It also plays it jerky inside Final Cut Pro X. Though if I create a Proxy (or Optimised Media) it plays that smoothly because it transcodes it to ProRes 422.
    However, when I play the same video (untranscoded, original .MOV) using VLC (v2.0.1) it plays it smoothly. Even VLC 1.1.12 plays it smoothly.
    Is it me or is Quicktime X not as good as VLC for HD video? Quicktime 7 Pro has the same jerky performance.
    I have a Mac Pro 2x2.66 Ghz (10.7.3) with 16 GB RAM and an NVIDIA GeForce 8800 GT 512 MB + 30" ACD
    By VLC playing it smoothly would it be a correct conclusion that my machine should be capable of playing back this video smoothly?
    Tony

    Hi,
    I imported some 1920x1080 60i footage from my Canon HF G10 camcorder into Final Cut Pro X  (v10.0.3). No transcoding or proxy. It just rewrapped the MTS files into MOV.
    I located the video files (.MOV) in the Final Cut Pro Event folder (Original) and opened one video using Quicktime X (v10.1). The Inspector hud reports:
    Format: 'avc1', 1920 × 1080, Millions
    16-bit Integer (Little Endian), Stereo (L R), 48.000 kHz
    FPS: 29.97
    Data Size: 155.7 MB
    Data Rate: 24.10 Mbit/s
    Current Size: 1,920 × 1,080 pixels (Actual)
    When I play the video in Quicktime X it is jerky. It also plays it jerky inside Final Cut Pro X. Though if I create a Proxy (or Optimised Media) it plays that smoothly because it transcodes it to ProRes 422.
    However, when I play the same video (untranscoded, original .MOV) using VLC (v2.0.1) it plays it smoothly. Even VLC 1.1.12 plays it smoothly.
    Is it me or is Quicktime X not as good as VLC for HD video? Quicktime 7 Pro has the same jerky performance.
    I have a Mac Pro 2x2.66 Ghz (10.7.3) with 16 GB RAM and an NVIDIA GeForce 8800 GT 512 MB + 30" ACD
    By VLC playing it smoothly would it be a correct conclusion that my machine should be capable of playing back this video smoothly?
    Tony

  • Why did you push out your CEO for his political and religious beliefs?

    It's sad that you chose to push out a CEO for his personal belief. What happened to freedom? I have happily deleted you from my devices and will continue to encourage others to do the same. Shame on you!

    Would it really hurt you to ask for facts on what happened with Brendan Eich? before assuming the worst happened instead?. One could say shame on you for not asking first.
    The knew about his 2008 donation as it was public record (due to California law on donations with name and employer being listed) and supported him for who he is to promote him from CTO to CEO. This was not found out after he became CEO as some mistakenly believed.
    Unfortunately some media outlets will rather publish sensationalized stories generating many clicks and increased revenue by ads than perform the most basic fact-checking or even posting the truth.
    In fact Brendan refused to step down (as first link from day before shows) due to the pressure from outside campaigning to get him to resign as CEO. However it just got so bad in increasing attacks that he felt he could no longer be an effective leader with people constantly attacking him. He decided to leave as his way of helping Mozilla however this then triggered attacks more towards Mozilla due to the misconceptions made by individuals and article writers thinking was fired or forced out.
    *http://www.theguardian.com/technology/2014/apr/01/mozilla-ceo-brendan-eich-refuses-to-quit
    *https://medium.com/p/7645a4bf8a2
    *http://blog.gerv.net/2014/04/your-ire-is-misdirected/
    *https://blog.mozilla.org/blog/2014/04/05/faq-on-ceo-resignation/
    Since he was not fired or forced out he could go back to Mozilla if he wanted to I would like to think.

  • Why are my push notifications expiring?

    Hi.
    I received this message today and I'm completely confused on what it means, and what to do.
    I don't recall setting up any certificates, so can someone please explain what's happening here and how I can resolve it?
    When I try to open the server app, I'm told that it cannot be opened on this type of Mac. Lion Server came preinstalled on my Mac Mini though.
    Message:
    The following Apple Push Notification Service certificates, created for AppleID will expire on June 18, 2013.You can renew your certificates with your Mac server administration tools.
    server.local - apns:com.apple.calendar
    server.local - apns:com.apple.contact
    server.local - apns:com.apple.mail
    server.local - apns:com.apple.mgmt
    Thank You,
    Apple Push Notification Service
    the alert

    I have received the same message from [email protected] and left me equally perplexed as you.
    Anyone be kind enough to decipher this enigma?
    Thanks

  • Animation runs jerky, want smooth playback. Help!

    I am still new to Fireworks and I'm building a website using
    it. I've created the animated text but would like the jerkyness to
    disappear and for it to run smoothly. I've tried using from 7 -23
    frames but it didn't make a difference. I played with the frame
    settings and it helped a little but didn't fix the problem.
    Could anyone tell me how to tweek it so that the text float
    smoothly accross the screen? I've read through the Fireworks Help
    many times but couldn't find a topic dealing with this issue.
    Thanks for your time and response.

    link?
    speets wrote:
    > I am still new to Fireworks and I'm building a website
    using it. I've created
    > the animated text but would like the jerkyness to
    disappear and for it to run
    > smoothly. I've tried using from 7 -23 frames but it
    didn't make a difference.
    > I played with the frame settings and it helped a little
    but didn't fix the
    > problem.
    >
    > Could anyone tell me how to tweek it so that the text
    float smoothly accross
    > the screen? I've read through the Fireworks Help many
    times but couldn't find
    > a topic dealing with this issue.
    >
    > Thanks for your time and response.
    >
    >

  • Why is my new wireless mouse jerky on my macbook pro?

    I've been using a cheap Dynex wireless mouse (as well as a wired mouse when I'm at work) on this MacBook for a while with no problems whatsoever. The Dynex's buttons are starting to malfunciton, so I went to buy a new mouse....
    1st try -- I got some cheap Microsoft mouse from Best Buy. The movement was very erratic and jerky. I downloaded and installed the mouse software and adjusted settings there, to no avail.
    2nd try -- I bought a slightly more expensive Logitech M510 wireless mouse. It felt slightly different, but the result was essentially the same. The movement is jerky -- erratic. Sometimes, the mouse jumps inches across the screen instead of moving in a slow steady manner like it's supposed to. It appears to worsen when I boot up and play a game on the computer.
    Given the fact that the same problem occurred with two different new mice, but not with the old worn-out one, I must assume that  there is some incompatability between MacBook Pros and newer models of wireless mice. I can't seem to find any consistent "known issue" pages on this. Anyone know what I should do now? Any ideas?
    MacBook Pro
    15-inch, Late 2011
    Processor: 2.2 GHz Intel Core i7
    Memory: 8GB 1333 MHz DDR3
    Graphics: Intel HD Graphics 3000 512 MB
    Software: Mac OS X Lion 10.7.5 11G63b)

    The wireless mice you're buying.... are they 2.4GHz wireless ones (the ones that come with their own micro-dongle) or Bluetooth?  If they're the 2.4GHz wireless ones, go buy yourself a good bluetooth one.  Your Mac has bluetooth in it and can connect to one of these mice without the need to use the dongle that comes with them.  I've seen a quite a bit of issues (jerky movement due to low battery too far away or other movement problems) with the non-bluetooth wireless ones.
    Also, be aware that if the mice you're using are laser based, the movement will be laggy and jerky if they're not used on the proper surface.  Only the more expensive ones have better laser systems in them that can be used on multiple surfaces, but still not all.

Maybe you are looking for