• 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
Detect whether UIRefreshControl can be used
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detect whether UIRefreshControl can be used


  • Subject: Detect whether UIRefreshControl can be used
  • From: Diederik Meijer | Ten Horses <email@hidden>
  • Date: Wed, 08 May 2013 15:51:07 +0100

Hi,

I am implementing a UIRefreshControl in an app that runs on iOS 5.1 or higher and want to test if the device is running iOS 6, because this is an iOS 6 feature.

I'd like to avoid detecting the iOS version in runtime and use a respondsToSelector route instead.

I am getting no compiler error on this codeline, so my first guess is this works, but I'd like to check..

    if ([self respondsToSelector:@selector(setRefreshControl)]) [self setUpRefreshControl];

Has anybody done this and van they tell me if the above works fine, or, alternatively, how to do this?

Many thanks!

diederik

_______________________________________________

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

  • Follow-Ups:
    • Re: Detect whether UIRefreshControl can be used
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Wanted: new owner for Mac apps
  • Next by Date: Re: Wanted: new owner for Mac apps
  • Previous by thread: Cocoaheads Lake Forest meets this Wednesday, 5/8, at 7pm
  • Next by thread: Re: Detect whether UIRefreshControl can be used
  • Index(es):
    • Date
    • Thread