CATransaction kCATransactionCompletionBlock or similar delegate on iPhone?

I am animating an arbitrary number of layers simultaneously using a CATransaction on the iPhone and would like to be able to perform some additional functionality when the transaction completes. I get animationDidStop calls for each layer that gets animated in the transaction, but would like to know when all layers are done – which would be when the transaction completes. I don't see a similar delegate within CATransaction that would provide notification when the transaction completes, and short of rolling my own notification based on tracking the arbitrary number of layers animating in a given transaction and decrementing that count each time animationDidStop gets called, I'm not sure how to hook into the end of the transaction.
Looking in the docs, I see 2 versions of CATransaction in the class reference, one for iPhone OS 2.0 and later, and one for Mac OS X 10.5 and later. The Mac OS version mentions a completionBlock object accessible via the kCATransactionCompletionBlock property available in Mac OS X 10.6 and later, which doesn't appear to be available for the iPhone?
Does anyone know if the completionBlock property is available on the iPhone or if there is a completion delegate or similar mechanism for receiving notification of a CATransaction completing?
Thanks in advance for any help or suggestions.

JavaJoe23 wrote:
Does anyone know if the completionBlock property is available on the iPhone
Have you tried using the name of the property instead of the constant? E.g.:
[CATransaction valueForKey:@"completionBlock"];
The docs are inconsistent about this. I don't know the story yet, but here's what I'm seeing:
1) Check out the DocumentRevisionHistory in this pdf: [http://developer.apple.com/Mac/library/documentation/GraphicsImaging/Reference /CATransactionclass/CATransactionclass.pdf]
2009-06-01
Updated for iPhone OS 3.0. Added new convenience methods, methods for locking, overriding timing functions, and completion blocks.
2) On my system, /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Li brary/Frameworks/QuartzCore.framework/Headers/CATransaction.h includes this comment:
* Currently supported transaction properties include:
* "animationDuration", "animationTimingFunction", "completionBlock",
* "disableActions". See method declarations above for descriptions of
* each property.
But when I add the QuartzCore framework to my Device 3.1 project, the Groups & Files tree tells me I have a different framework with a header that doesn't include the above comment: /System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/CATransactio n.h
I haven't gotten any farther than the above observations to date. Every time I've tried to second guess Xcode the adventure has ended badly, so I haven't gone there yet. But maybe the above clues will be useful to you.
- Ray

Similar Messages

  • HT3255 I just lost my macbook air - is there any way to lock it or wipe it (similar to an iphone)?

    I just lost my macbook air - is there any way to lock it or wipe it (similar to an iphone)?

    not unless find my mac was installed before it was lost.

  • Problems syncing new google calendar delegates to iPhone 3

    I got a iPhone 3 a few months ago and had no problem setting up calendar so that all of my google calendar delegates are visible in both iCal and on my iPhone. I haven't had any problems with getting events to update on all of my calendars regardless of which program I use to create/ edit the event, until now. I recently created a new google calendar delegate. I can access the delegate in both iCal and on google but for some reason I can't get the new delegate to sync to my iPhone. I've tried to edit the settings in all of the programs, i've edited events on the new calendar on google on my iPhone, on my computer and on iCal but I still can't get it to show up in calendar on my iPhone. Any suggestions on fixing this problem?

    I didn't know it was possible. How do I find an option to subscribe to a new calendar from within the iPhone? I've always subscribed via synching.

  • Sync ical server delegates to iphone

    I've seen many postings about syncing google delegate calendars in Ical to an Iphone, but my situation is with Snow Leopard Server Ical server.  We have delegate calendars setup on our server and they display properly on the desktop clients in ICal, but I can't sync the delegates to my IPhone.  I tried subscribing to the delegates by using the CalDav URL shown in the "get Info" pane, but always get an "incorrect URL" error.  Any help is appreciated.

    Thanks for that advice.  Curious though - is what I'm asking even possible?  It seems like it should be.  Can iTunes bring over the CalDav info the same way it did with my email accounts when I first got my phone.  It's just strange that iTunes sees the CalDav calendars, but nothing comes over.
    I have to set up several iOS devices so not having to do this manually would be ideal, but if I have to...

  • Ical Delegate on iPhone and Wiki Page

    Hello everyone,
    I recently purchased a mac mini server for my company.
    I configured everything I need except the delegates on the wiki page and calendars on your iPhone.
    I need to see calendar of all my employees while they only just.
    How can I do?
    help
    Mark

    Ehhhh PowerBook can't run iCloud what I know off. It's a PPC and can run 10.5 but not 10.6 or 10.7

  • Isn't there somewhere either on this site or somewhere similar that gives iphone users the ability to check their software on thier device and shows diagnostics after scanning?

    I do not remember for the life of me where I was once able to check how my iphone was functioning but recall I did it straight from my phone. Is anyone familiar with what I'm referring to and where it's located? I appreciate any info on the subject.  Thanks in advance!

    As far as I know, there is no such program.
    What is not functioning on your iPhone?

  • Problem of the iPad connection with the iPhone hotspot after upgrading to iOS 6

    Hi guys, this is my problem: I've got an iPhone 4 and an iPad 2. With iOS 5.1.1, installed on both devices, I was able to surf the internet with my iPad through the iPhone hotspot.
    I've just installed iOS6 on both devices...now iPad sees the iPhone wi-fi network but it can't connect!
    Why?
    Thanks for your support

    I have a similar problem, using iPhone 4 and iPad 3. I can connect to the iPhone hotspot (iPhone show the blueish bar on top of its screen and says 1connection is active). So far so good, BUT, the iPad gets no symbol (the chain showing its linked) nor internet access. Sometimes the symbol comes but still no internet. By resetting the iPhones network settings I get it to work immidiately after, but after putting my iPad to sleep there will be the same issue over again. Please come up with a solution. Maybe I need to restore both devices? I don't like the idea though. It just works, huh?!?!?

  • I changed my apple id but it will not allow us to update our apps on 2nd iphone and ipad. What can we do to fix/

    I changed my apple id due to our email address changing. The new apple id works fine on my iphone but my wife cannot update apps on either her iphone 5 or ipad. It keeps asking for the password to the apple id we no longer use. What are solutions?

    If you updated your existing account then try logging out of the account on the iPad by tapping on the id in Settings > Store (Settings > iTunes & App Stores on iOS 6+) and then log back in and see if that 'refreshes' the account on it - and similarly with the iPhone.

  • How do I join multiple Contacts on my iPhone 5?

    How do I join multiple Contacts that are exact or very similar on my iPhone 5?  When I bought my iP5, I merged my contact from my android phone but almost all of my contacts were duplicated (I now have over 4k contacts) in this process.  Any suggestions are appreciated.

    The app My Contacts Backup Pro will identify and delete identical duplicate contacts.

  • HT4623 Good evenning, I m using iphone 5, just loaded IOS 6.1. after then when I try to connection by wi-fi ,connection is not possible.it seems on the phone that always parola is not correct.This is temporarly problem or related sytem of telephone..???

    Helloo
    I  useing ı phone 5. I loaded ios 6.1 before 4 days. Now Wi-fi doesn't work. When I try to new connection with Wi-fi, that it seems always  no correct parole .
    please help me.

    I had a similar issue with iPhone 4s running iOS 6.1, not able to connect to Wifi.  This was fixed after I used iTunes to backup and restore the phone again.  Now upgraded to iOS 6.1.3.  It works like a charm.

  • My iPhone 4s is in constant search mode. Help !!!

    Hi, my iPhone 4s is in constant search mode. The wifi is fine but the phone itself is unable to find any carrier signals. The firmware (6.1.3) is up to date and the phone has been restored through itunes both as a new iphone and restored from a saved back up. curiously as well when you remove the sim card the phone does not register the removal. The guys down at the apple genius bar tell me that the phone is mechanically in perfect order. Never been dropped, never come into contact with water and never been opened to replace any parts. Basically they are stumped for an answer. can anybody out there offer some help. Oh and i have done the hard restart using the home button and the power button but still no joy. Is this perhaps a 6.1.3 bug that were not being told about?  I only ask this as it was working fine until after i did the 6.1.3 software upgrade and i have noticed a lot of posts regarding similar problems on iphone's only with the wifi after upgrading. Thanks.

    Check Hosts file of the computer.
    http://support.apple.com/kb/TS3694?viewlocale=en_US#error3194

  • A month in Thailand with iPhone

    First of all, I am not a computer geek.... just a stupid user, who could just only use.... I don't really know much technical stuff, however, I would like to share some experience using this phone internationally. I just hope that it would be useful for some user who is thinking or preparing to go abroad with your iPhone (or future iPhone)
    Starting from on-board experience:
    Trip from US to Thailand is basically 24-hour trip (more or less) including transit time via Japan. I charged my iPhone for a night before using it. Aitplane mode works very well. At that time I haven't had any movies on my iPhone. I listened to ipod from iPhone around 18 hours + half an hour international phone call. So, I guess my battery is OK.
    in Thailand:
    Since the international roaming is so expensive, I use my iPhone as iPod and web serfing only. For some reason, youtube is banned in Thailand at the moment (do not ask me why, it's the different long story), however, you could see on your iPhone via EDGE. youtube is ready to watch within one minute. However, I was charged for $20 for 1GB loading.
    Basically, I turn on airplane mode all the time in Thailand and use it as ipod touch. Map, stock and weather are useless. However, weather mode could find some other weather condition in some other countries such as Singapore or Hong Kong.
    It is worth noting that I have a trouble syncing with my home computer in Thailand and I could not solve it. I am not sure whether it is because I synced in Thailand or not. To me, it should not be the case but I could not find the wayout for this so I just ignore that (if someone knows, please let me know).
    I could not think about any other issues. iPhone is not getting into Asia until 2008. Right now, some other brands are trying to eat up some market share on devices that would have similar features as iPhone. I have tried HTC and LG Prada while I was in Thailand but I have to admit that the interface of iPhone is way better.
    I hope this would help you all in some way as a non hi-tech person.
    cheers

    I use www.voipdiscount.com
    so I go to this web site via safari, login, put my phone number and long-distant destination number. The web will connect the line for you.
    I don't really know whether other website would do the same thing like this or not but this works for me lately.
    cheers

  • Iphone 5s from UAE enable FaceTime outside UAE

    Hi,
    I have bought my iPhone 5s contract free  in UAE (Dubai) but im from Europe. I came back home now and i cant re enable FaceTime, altho app store worker over there told me that it was possible, but forgot to ask him HOW
    Can you help me ?
    Thanks in advance

    Hi, from my experience i feel that they are carrier settings, coz i bought an iMac from Dubai, and the facetime icon is there, but when i try to contact people abroad i get a dial tone, connecting, then connection failed. They must be blocking the facetime port from the ISP.
    Similarly on the iphone, i have experienced from when i bought my 2nd iphone (4) from etisalat ( First time Etisalat sells iPhone in UAE), it had facetime, but then after 2 days, the phone started having some softwares, issues i called, Etisalat, they told me to connect it to iTunes and update, after that the phone worked fine , but facetime disappeared. I am suspecting that each region has a custome tuned ios firmware in the iTunes, this is the only logical way that they can control this restriction.
    So now, i am trying to find a US iOS firmware and upload it on my 5s, if this works , ill update you then my theory would be correct.
    The other thing is its good that they allowed iMessage, otherwise i would have jailbreak the phone.
    My last point is , i think that they do not have the infrastructure to accumulate the bandwidth if they allowed facetime, i am sure they have studied the decline in sms, when bbm,imessage,whatsapp tookover, but still they are gaining from the cellular data services part without upgrading their existing systems.
    If they allowed facetime, all the 3G ,4G satellites will be flooded with facetime users, as message bandwidth is quite less, when compared to voice and video.
    I am also frustrated that since, viber and skype, work, why dont they allow facetime !

  • HT1476 why wont my iphone charge from my new computer?

    My iphone 4s will not charge from my new computer any ideas?

    Fault with new computer's USB port - does it work with other devices? Have same problem on another computer?
    Fault with cable - Tried another cable? Does cable work with other "idevices"?
    Dirt in iPhone charging port - look and clean out gently with soft dry toothbrush or similar
    Fault with iPhone - reset / restore
    Take your choice.

  • Iphone 4 retina and Quicktime "pro" 7 not compatable? *** !

    I am disgusted that apple would sell quicktime pro (7) and advertise that it works for the iphone when the iphone 4 has been out for a year now and QT7 does NOT support the retina display resolution (920 x 640). Only the much older lower resolutions are supported for the iphone 4. Also the h264 compressor apple uses is just terrible. Heck even Videora has a far better H264 compressor and its free !
    Steve Jobs, you should be ashamed for STEALING my money!
    In all honesty, Convert your mov files with Videora for free and they will look 10 x better than any quicktime "pro" version,  do not ever purchase quicktime pro as it is a complete waste of your money and amounts to nothing more that a THEFT of your monies ! I should have gone with the reviews as most are clearly very negative on this old product but I didnt think apple could make something this terrible, hmmm, but they did.

    I'm glad yer iPhone plays 720p just like mine but that is not the problem I am having. When you find out why qt pro 7 does NOT support exporting ( using the supplied iphone or h264 settings) the iPhone 4 retina resolution then please respond with the correct reason.
    You are obviously using the built-in preset options and not custom settings. You are forgetting that Apple's primary purpose when creating pre-sets is to ensure compatibility. These options are programmed for multi-generation devices and, only support, the quality/settings that are compatible with the least capable device. As such, the TV preset is limited to 960x540 display resolution at 30/29.97 fps and a maximum video data rate of 5.0 Mbps. In a similar manner, the iPhone pre-set is limited to 1620 macroblocks/frame (usually a 720x480 or 720x576 max matrix) and 1.0 Mbps video data to maintain compatibility with all previous iPhone models. If you want to make the most of your device's particular capabilities, then either use custom settings or chose a different device pre-set whose output more closely matches what you want to use on your device if you want to use QT 7 Pro to perform your conversions. If you want to use a different converter, than, by all means, feel free to do so. However, since the source of your problem is in your work flow and not the product, I was merely attempting to point out the fact that your previous comments were unjustified.
    As far as editing softwares and hardwares go I have everything from autodesk flame/ inferno down to pro and everything in between. Again please respond to my simple question only, why does qt7 not support the latest iPhone 4 higher retina display resolution? As opposed to older lower resolutions.
    Let's hope you fully know how to take advantage of all of these hardware/software devices/applications. If you really feel Apple should support each device and generation of device with a separate entity pre-set as created and sold since being released, then contact Apple HERE and register your total dissatisfaction regarding each and every product not to your liking. You, of course, are entitled to your own opinions. Please extend the same courtesy to others.
    Qt7 still ***** and is a total waste of money as people can do everything it does better and for free. Screw apple!
    I might agree in some instances. For transcoding, I tend to prefer the X.264 codec with custom settings for more extensive analysis, better vector motion detection/rendering, removal of duplicated frames when applying detelecine, and a limited combined deinterlace/decomb filtering option. However, try aging, masking, layering, blending, picture-in-picture/picture-with-picture, and similar compositing options in a "free" utility.

Maybe you are looking for