Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (23 sloc) 0.495 kb
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KWDeviceInfo.h"
#if TARGET_IPHONE_SIMULATOR
#import <UIKit/UIKit.h>
#endif // #if TARGET_IPHONE_SIMULATOR
@implementation KWDeviceInfo
#pragma mark -
#pragma mark Getting the Device Type
+ (BOOL)isSimulator {
#if TARGET_IPHONE_SIMULATOR
return YES;
#else
return NO;
#endif // #if TARGET_IPHONE_SIMULATOR
}
+ (BOOL)isPhysical {
return ![self isSimulator];
}
@end
Jump to Line
Something went wrong with that request. Please try again.