Skip to content
Browse files

Added conditional compile for DecimalPad on SDK 4.1 and above

  • Loading branch information...
1 parent 7ce90ed commit 623b8e3bd17b842bd3b74c8f95d931d0a1f24694 @dynjo dynjo committed Apr 16, 2011
View
4 InAppSettingsKit/Models/IASKSettingsReader.h
@@ -46,7 +46,11 @@
#define kIASKKeyboardAlphabet @"Alphabet"
#define kIASKKeyboardNumbersAndPunctuation @"NumbersAndPunctuation"
#define kIASKKeyboardNumberPad @"NumberPad"
+
+#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_1
#define kIASKKeyboardDecimalPad @"DecimalPad"
+#endif
+
#define KIASKKeyboardURL @"URL"
#define kIASKKeyboardEmailAddress @"EmailAddress"
#define kIASKAutoCapNone @"None"
View
2 InAppSettingsKit/Models/IASKSpecifier.m
@@ -190,9 +190,11 @@ - (UIKeyboardType)keyboardType {
else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardNumberPad]) {
return UIKeyboardTypeNumberPad;
}
+ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_1
else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:kIASKKeyboardDecimalPad]) {
return UIKeyboardTypeDecimalPad;
}
+ #endif
else if ([[_specifierDict objectForKey:KIASKKeyboardType] isEqualToString:KIASKKeyboardURL]) {
return UIKeyboardTypeURL;
}
View
4 InAppSettingsKitSampleApp/InAppSettingsKitSampleApp.xcodeproj/project.pbxproj
@@ -467,7 +467,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = InAppSettingsKitSampleApp_Prefix.pch;
INFOPLIST_FILE = "InAppSettingsKitSampleApp-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.1;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
@@ -481,7 +481,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = InAppSettingsKitSampleApp_Prefix.pch;
INFOPLIST_FILE = "InAppSettingsKitSampleApp-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.1;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};

0 comments on commit 623b8e3

Please sign in to comment.
Something went wrong with that request. Please try again.