iphone - Enabling different features depending on iOS version -


in application we're building, want use uilocalnotifications, available 4.0.

checking if object responds selector pretty easy, how can go defining delegate methods on class depending on os? problem app delegate implements

-(void)application:(uiapplication *)application didreceivelocalnotification:(uilocalnotification *)notification  

method, makes application crash on startup on ios 3.2 device (ipad).

not having release multiple builds preferred.

you need use feature called “weak linking,” work ios 3.1 or later. there specific steps need follow, outlined in 4.2 “what's new” document (search “weak linking” in document).

hth!


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -