/libs/ObjectAL/Support/IOSVersion.h

http://github.com/kstenerud/ObjectAL-for-iPhone · C Header · 29 lines · 9 code · 4 blank · 16 comment · 0 complexity · 48ab6610d3c46c86347470fa736c35fe MD5 · raw file

  1. //
  2. // IOSVersion.h
  3. // ObjectiveGems
  4. //
  5. // Created by Karl Stenerud on 10-11-07.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "SynthesizeSingleton.h"
  9. /**
  10. * Reports the version of iOS being run on the current device.
  11. */
  12. @interface IOSVersion : NSObject
  13. {
  14. /** Holds the current iOS version */
  15. float version;
  16. }
  17. /** The version of iOS being run on the current device as a float in the format x.yy */
  18. @property(readonly) float version;
  19. /** Singleton implementation providing "sharedInstance" and "purgeSharedInstance" methods.
  20. *
  21. * <b>- (IOSVersion*) sharedInstance</b>: Get the shared singleton instance. <br>
  22. * <b>- (void) purgeSharedInstance</b>: Purge (deallocate) the shared instance.
  23. */
  24. SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(IOSVersion);
  25. @end