• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iOS Version Install Base
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iOS Version Install Base


  • Subject: Re: iOS Version Install Base
  • From: koko <email@hidden>
  • Date: Thu, 28 Apr 2011 13:53:29 -0600

Steve -

I like your suggestion ... thanks.

-koko


On Apr 28, 2011, at 12:34 PM, Steve Christensen wrote:

> We're only supporting iOS 4.0 and later since we feel like there's sufficient adoption rate to make it worthwhile. Certainly if you feel like you still need to support pre-4.0, you could build against the current 4.x SDK, set the deployment target to be iOS 3.x (or whatever), and conditionally include the non-block animation code with a runtime check to handle each case. Putting a build-time conditional around the "legacy" code, and runtime check, means that it automatically gets compiled out when your builds stop supporting pre-4.0.
>
> #if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_4_0
> if (![UIView respondsToSelector:@selector(animateWithDuration:animations:completion:)])
> {
> 	[UIView beginAnimations:...];
> 	...
> 	[UIView commitAnimations];
> }
> else
> #endif
> {
> 	[UIView animateWithDuration:...];
> }
>
>
>
> On Apr 27, 2011, at 10:44 AM, koko wrote:
>
>> I am looking at the UIView Animations Overview.
>>
>> Block-based animations are recommended, but this iOS 4.
>>
>> Is it best to use begin/commit methods for compatibility !
>>
>> What are others doing?
>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >iOS Version Install Base (From: koko <email@hidden>)
 >Re: iOS Version Install Base (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: Aliases with NDAlias not appearing where I tell them to be.
  • Next by Date: onSocketDidDisconnect in CocoaAsyncSocket
  • Previous by thread: Re: iOS Version Install Base
  • Next by thread: Aliases with NDAlias not appearing where I tell them to be.
  • Index(es):
    • Date
    • Thread