From 06f78c2872c8537866dfe691664349a7226603e3 Mon Sep 17 00:00:00 2001 From: kevensya Date: Wed, 11 Feb 2015 00:18:30 +0900 Subject: [PATCH 1/9] fixed the 100% cpu used problem --- REFormattedNumberField/REFormattedNumberField.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/REFormattedNumberField/REFormattedNumberField.m b/REFormattedNumberField/REFormattedNumberField.m index e6e3de1..1bb0ae7 100644 --- a/REFormattedNumberField/REFormattedNumberField.m +++ b/REFormattedNumberField/REFormattedNumberField.m @@ -80,6 +80,7 @@ - (void)formatInput:(UITextField *)textField } } +/* - (void)deleteBackward { NSInteger decimalPosition = -1; @@ -104,6 +105,7 @@ - (void)deleteBackward // [self sendActionsForControlEvents:UIControlEventEditingChanged]; } +*/ - (NSString *)unformattedText { @@ -174,6 +176,13 @@ - (id)forwardingTargetForSelector:(SEL)aSelector - (BOOL)respondsToSelector:(SEL)aSelector { + // fixed the 100% cpu used problem + NSString * selectorName = NSStringFromSelector(aSelector); + + if ([selectorName isEqualToString:@"customOverlayContainer"]) { + return NO; + } + BOOL respondsToSelector = [super respondsToSelector:aSelector]; if (!respondsToSelector && self.originalDelegate != self) { From dcab3e150d9cdc7cd01e4f1634f269389039946b Mon Sep 17 00:00:00 2001 From: kevensya Date: Wed, 11 Feb 2015 00:25:47 +0900 Subject: [PATCH 2/9] change the url of git source. --- REFormattedNumberField.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/REFormattedNumberField.podspec b/REFormattedNumberField.podspec index 33b56f1..f8560e9 100644 --- a/REFormattedNumberField.podspec +++ b/REFormattedNumberField.podspec @@ -4,7 +4,7 @@ Pod::Spec.new do |s| s.authors = { 'Roman Efimov' => 'romefimov@gmail.com' } s.homepage = 'https://github.com/romaonthego/REFormattedNumberField' s.summary = 'UITextField subclass that allows number input in a predefined format.' - s.source = { :git => 'https://github.com/romaonthego/REFormattedNumberField.git', + s.source = { :git => 'https://github.com/kevensya/REFormattedNumberField.git', :tag => s.version.to_s } s.license = { :type => "MIT", :file => "LICENSE" } From ce756a094087f06c11744dc2c8fdce30c0524a31 Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 13:06:21 +0200 Subject: [PATCH 3/9] [framework] Added Xcode project --- .gitignore | 19 ++ .../project.pbxproj | 274 ++++++++++++++++++ 2 files changed, 293 insertions(+) create mode 100644 .gitignore create mode 100644 REFormattedNumberField.xcodeproj/project.pbxproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39e8c92 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +deployment +clangScanBuildReports +test/test-reports + +.svn +build +DerivedData +svnignore.* +*.svnignore +*.DS_Store +*.mode1v3 +*.pbxuser + +*xcuserdata* +*.xcworkspace +*.xccheckout + +.idea +._* diff --git a/REFormattedNumberField.xcodeproj/project.pbxproj b/REFormattedNumberField.xcodeproj/project.pbxproj new file mode 100644 index 0000000..02dafd5 --- /dev/null +++ b/REFormattedNumberField.xcodeproj/project.pbxproj @@ -0,0 +1,274 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 7E0E2CD31AC41E750016165D /* REFormattedNumberField.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 7E0E2CD21AC41E750016165D /* REFormattedNumberField.h */; }; + 7E0E2CD51AC41E750016165D /* REFormattedNumberField.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CD41AC41E750016165D /* REFormattedNumberField.m */; }; + 7E0E2CEB1AC41EA80016165D /* NSString+RENumberFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 7E0E2CCD1AC41E750016165D /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + 7E0E2CD31AC41E750016165D /* REFormattedNumberField.h in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 7E0E2CCF1AC41E750016165D /* libREFormattedNumberField.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libREFormattedNumberField.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 7E0E2CD21AC41E750016165D /* REFormattedNumberField.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = REFormattedNumberField.h; sourceTree = ""; }; + 7E0E2CD41AC41E750016165D /* REFormattedNumberField.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = REFormattedNumberField.m; sourceTree = ""; }; + 7E0E2CE01AC41E750016165D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7E0E2CE91AC41EA80016165D /* NSString+RENumberFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+RENumberFormat.h"; sourceTree = ""; }; + 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+RENumberFormat.m"; sourceTree = ""; }; + 7E0E2CEC1AC41F510016165D /* REFormattedNumberField-headers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "REFormattedNumberField-headers.h"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7E0E2CCC1AC41E750016165D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 7E0E2CC61AC41E750016165D = { + isa = PBXGroup; + children = ( + 7E0E2CD11AC41E750016165D /* REFormattedNumberField */, + 7E0E2CDE1AC41E750016165D /* REFormattedNumberFieldTests */, + 7E0E2CD01AC41E750016165D /* Products */, + ); + sourceTree = ""; + }; + 7E0E2CD01AC41E750016165D /* Products */ = { + isa = PBXGroup; + children = ( + 7E0E2CCF1AC41E750016165D /* libREFormattedNumberField.a */, + ); + name = Products; + sourceTree = ""; + }; + 7E0E2CD11AC41E750016165D /* REFormattedNumberField */ = { + isa = PBXGroup; + children = ( + 7E0E2CE91AC41EA80016165D /* NSString+RENumberFormat.h */, + 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */, + 7E0E2CD21AC41E750016165D /* REFormattedNumberField.h */, + 7E0E2CD41AC41E750016165D /* REFormattedNumberField.m */, + 7E0E2CEC1AC41F510016165D /* REFormattedNumberField-headers.h */, + ); + path = REFormattedNumberField; + sourceTree = ""; + }; + 7E0E2CDE1AC41E750016165D /* REFormattedNumberFieldTests */ = { + isa = PBXGroup; + children = ( + 7E0E2CDF1AC41E750016165D /* Supporting Files */, + ); + path = REFormattedNumberFieldTests; + sourceTree = ""; + }; + 7E0E2CDF1AC41E750016165D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 7E0E2CE01AC41E750016165D /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7E0E2CCE1AC41E750016165D /* REFormattedNumberField */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7E0E2CE31AC41E750016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField" */; + buildPhases = ( + 7E0E2CCB1AC41E750016165D /* Sources */, + 7E0E2CCC1AC41E750016165D /* Frameworks */, + 7E0E2CCD1AC41E750016165D /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = REFormattedNumberField; + productName = REFormattedNumberField; + productReference = 7E0E2CCF1AC41E750016165D /* libREFormattedNumberField.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7E0E2CC71AC41E750016165D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0620; + ORGANIZATIONNAME = healthjoy; + TargetAttributes = { + 7E0E2CCE1AC41E750016165D = { + CreatedOnToolsVersion = 6.2; + }; + }; + }; + buildConfigurationList = 7E0E2CCA1AC41E750016165D /* Build configuration list for PBXProject "REFormattedNumberField" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 7E0E2CC61AC41E750016165D; + productRefGroup = 7E0E2CD01AC41E750016165D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7E0E2CCE1AC41E750016165D /* REFormattedNumberField */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 7E0E2CCB1AC41E750016165D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7E0E2CEB1AC41EA80016165D /* NSString+RENumberFormat.m in Sources */, + 7E0E2CD51AC41E750016165D /* REFormattedNumberField.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 7E0E2CE11AC41E750016165D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 7E0E2CE21AC41E750016165D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7E0E2CE41AC41E750016165D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 7E0E2CE51AC41E750016165D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7E0E2CCA1AC41E750016165D /* Build configuration list for PBXProject "REFormattedNumberField" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7E0E2CE11AC41E750016165D /* Debug */, + 7E0E2CE21AC41E750016165D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7E0E2CE31AC41E750016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7E0E2CE41AC41E750016165D /* Debug */, + 7E0E2CE51AC41E750016165D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7E0E2CC71AC41E750016165D /* Project object */; +} From c1dbd35ae19b950682614908dd694272636c60f8 Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 13:06:37 +0200 Subject: [PATCH 4/9] [framework] Added umbrella header --- .../REFormattedNumberField-headers.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 REFormattedNumberField/REFormattedNumberField-headers.h diff --git a/REFormattedNumberField/REFormattedNumberField-headers.h b/REFormattedNumberField/REFormattedNumberField-headers.h new file mode 100644 index 0000000..bbc4bd9 --- /dev/null +++ b/REFormattedNumberField/REFormattedNumberField-headers.h @@ -0,0 +1,15 @@ +// +// REFormattedNumberField-headers.h +// REFormattedNumberField +// +// Created by Oleksandr Dodatko on 3/26/15. +// Copyright (c) 2015 healthjoy. All rights reserved. +// + +#ifndef REFormattedNumberField_REFormattedNumberField_headers_h +#define REFormattedNumberField_REFormattedNumberField_headers_h + +#import +#import + +#endif From fd3e2af12d921880de6a9fa2f78e5d70aaa9fd7f Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 13:07:27 +0200 Subject: [PATCH 5/9] [framework] Moved category to implementation file --- REFormattedNumberField/REFormattedNumberField.h | 6 ++++-- REFormattedNumberField/REFormattedNumberField.m | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/REFormattedNumberField/REFormattedNumberField.h b/REFormattedNumberField/REFormattedNumberField.h index 3c859a2..4a07e3b 100644 --- a/REFormattedNumberField/REFormattedNumberField.h +++ b/REFormattedNumberField/REFormattedNumberField.h @@ -24,7 +24,8 @@ // #import -#import "NSString+RENumberFormat.h" + +@class NSString; @interface REFormattedNumberField : UITextField @@ -34,6 +35,7 @@ // Use NSString category NSString+RENumberFormat // - (NSString *)re_stringWithNumberFormat:(NSString *)format; // -- (NSString *)string:(NSString *)string withNumberFormat:(NSString *)format __attribute__ ((deprecated)); +- (NSString *)string:(NSString *)string + withNumberFormat:(NSString *)format __attribute__ ((deprecated)); @end diff --git a/REFormattedNumberField/REFormattedNumberField.m b/REFormattedNumberField/REFormattedNumberField.m index 1bb0ae7..cd4ff09 100644 --- a/REFormattedNumberField/REFormattedNumberField.m +++ b/REFormattedNumberField/REFormattedNumberField.m @@ -24,6 +24,7 @@ // #import "REFormattedNumberField.h" +#import "NSString+RENumberFormat.h" @interface REFormattedNumberField () From c7db7b71c3e9e68f78eed74247530f583dc83de1 Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 13:08:37 +0200 Subject: [PATCH 6/9] [xcodeproj] Removed unwanted files --- .../contents.xcworkspacedata | 7 ---- .../REFormattedNumberFieldExample.xccheckout | 41 ------------------- 2 files changed, 48 deletions(-) delete mode 100644 REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/xcshareddata/REFormattedNumberFieldExample.xccheckout diff --git a/REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 8e7bb80..0000000 --- a/REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/xcshareddata/REFormattedNumberFieldExample.xccheckout b/REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/xcshareddata/REFormattedNumberFieldExample.xccheckout deleted file mode 100644 index 25f9676..0000000 --- a/REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace/xcshareddata/REFormattedNumberFieldExample.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 4ED0A5F7-4CD2-4E92-B635-512EFF6207A5 - IDESourceControlProjectName - REFormattedNumberFieldExample - IDESourceControlProjectOriginsDictionary - - 36CA780C780547388600C5E5EC6C5DDCE42F560E - ssh://github.com/romaonthego/REFormattedNumberField.git - - IDESourceControlProjectPath - REFormattedNumberFieldExample/REFormattedNumberFieldExample.xcodeproj/project.xcworkspace - IDESourceControlProjectRelativeInstallPathDictionary - - 36CA780C780547388600C5E5EC6C5DDCE42F560E - ../../.. - - IDESourceControlProjectURL - ssh://github.com/romaonthego/REFormattedNumberField.git - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - 36CA780C780547388600C5E5EC6C5DDCE42F560E - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 36CA780C780547388600C5E5EC6C5DDCE42F560E - IDESourceControlWCCName - REFormattedNumberField - - - - From 0ce837020109dfe1807f8aa279a09c67f6dd14a3 Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 13:38:29 +0200 Subject: [PATCH 7/9] Added framework targets --- ...tedNumberField-iOS-dynamic copy-Info.plist | 26 ++ REFormattedNumberField-iOS-dynamic/Info.plist | 26 ++ .../REFormattedNumberField-iOS-dynamic.h | 19 ++ .../project.pbxproj | 260 ++++++++++++++++++ 4 files changed, 331 insertions(+) create mode 100644 REFormattedNumberField-iOS-dynamic copy-Info.plist create mode 100644 REFormattedNumberField-iOS-dynamic/Info.plist create mode 100644 REFormattedNumberField-iOS-dynamic/REFormattedNumberField-iOS-dynamic.h diff --git a/REFormattedNumberField-iOS-dynamic copy-Info.plist b/REFormattedNumberField-iOS-dynamic copy-Info.plist new file mode 100644 index 0000000..e4865e0 --- /dev/null +++ b/REFormattedNumberField-iOS-dynamic copy-Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.healthjoy.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/REFormattedNumberField-iOS-dynamic/Info.plist b/REFormattedNumberField-iOS-dynamic/Info.plist new file mode 100644 index 0000000..e4865e0 --- /dev/null +++ b/REFormattedNumberField-iOS-dynamic/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.healthjoy.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/REFormattedNumberField-iOS-dynamic/REFormattedNumberField-iOS-dynamic.h b/REFormattedNumberField-iOS-dynamic/REFormattedNumberField-iOS-dynamic.h new file mode 100644 index 0000000..c3c12b5 --- /dev/null +++ b/REFormattedNumberField-iOS-dynamic/REFormattedNumberField-iOS-dynamic.h @@ -0,0 +1,19 @@ +// +// REFormattedNumberField-iOS-dynamic.h +// REFormattedNumberField-iOS-dynamic +// +// Created by Oleksandr Dodatko on 3/26/15. +// Copyright (c) 2015 healthjoy. All rights reserved. +// + +#import + +//! Project version number for REFormattedNumberField-iOS-dynamic. +FOUNDATION_EXPORT double REFormattedNumberField_iOS_dynamicVersionNumber; + +//! Project version string for REFormattedNumberField-iOS-dynamic. +FOUNDATION_EXPORT const unsigned char REFormattedNumberField_iOS_dynamicVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/REFormattedNumberField.xcodeproj/project.pbxproj b/REFormattedNumberField.xcodeproj/project.pbxproj index 02dafd5..62dbcad 100644 --- a/REFormattedNumberField.xcodeproj/project.pbxproj +++ b/REFormattedNumberField.xcodeproj/project.pbxproj @@ -10,6 +10,18 @@ 7E0E2CD31AC41E750016165D /* REFormattedNumberField.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 7E0E2CD21AC41E750016165D /* REFormattedNumberField.h */; }; 7E0E2CD51AC41E750016165D /* REFormattedNumberField.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CD41AC41E750016165D /* REFormattedNumberField.m */; }; 7E0E2CEB1AC41EA80016165D /* NSString+RENumberFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */; }; + 7E0E2CF71AC420C60016165D /* REFormattedNumberField-iOS-dynamic.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CF61AC420C60016165D /* REFormattedNumberField-iOS-dynamic.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D0B1AC420D90016165D /* NSString+RENumberFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CE91AC41EA80016165D /* NSString+RENumberFormat.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D0C1AC420D90016165D /* NSString+RENumberFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */; }; + 7E0E2D0D1AC420D90016165D /* REFormattedNumberField.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CD21AC41E750016165D /* REFormattedNumberField.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D0E1AC420D90016165D /* REFormattedNumberField.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CD41AC41E750016165D /* REFormattedNumberField.m */; }; + 7E0E2D0F1AC420D90016165D /* REFormattedNumberField-headers.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CEC1AC41F510016165D /* REFormattedNumberField-headers.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D121AC425810016165D /* NSString+RENumberFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */; }; + 7E0E2D131AC425810016165D /* REFormattedNumberField.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E0E2CD41AC41E750016165D /* REFormattedNumberField.m */; }; + 7E0E2D161AC425810016165D /* REFormattedNumberField-iOS-dynamic.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CF61AC420C60016165D /* REFormattedNumberField-iOS-dynamic.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D171AC425810016165D /* REFormattedNumberField.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CD21AC41E750016165D /* REFormattedNumberField.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D181AC425810016165D /* REFormattedNumberField-headers.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CEC1AC41F510016165D /* REFormattedNumberField-headers.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 7E0E2D191AC425810016165D /* NSString+RENumberFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E0E2CE91AC41EA80016165D /* NSString+RENumberFormat.h */; settings = {ATTRIBUTES = (Public, ); }; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -33,6 +45,11 @@ 7E0E2CE91AC41EA80016165D /* NSString+RENumberFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+RENumberFormat.h"; sourceTree = ""; }; 7E0E2CEA1AC41EA80016165D /* NSString+RENumberFormat.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+RENumberFormat.m"; sourceTree = ""; }; 7E0E2CEC1AC41F510016165D /* REFormattedNumberField-headers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "REFormattedNumberField-headers.h"; sourceTree = ""; }; + 7E0E2CF21AC420C60016165D /* REFormattedNumberField.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = REFormattedNumberField.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7E0E2CF51AC420C60016165D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 7E0E2CF61AC420C60016165D /* REFormattedNumberField-iOS-dynamic.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "REFormattedNumberField-iOS-dynamic.h"; sourceTree = ""; }; + 7E0E2D1E1AC425810016165D /* REFormattedNumberField.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = REFormattedNumberField.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 7E0E2D1F1AC425820016165D /* REFormattedNumberField-iOS-dynamic copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "REFormattedNumberField-iOS-dynamic copy-Info.plist"; path = "/Users/dodikk/opensource/REFormattedNumberField/REFormattedNumberField-iOS-dynamic copy-Info.plist"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -43,6 +60,20 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 7E0E2CEE1AC420C60016165D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7E0E2D141AC425810016165D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -51,7 +82,9 @@ children = ( 7E0E2CD11AC41E750016165D /* REFormattedNumberField */, 7E0E2CDE1AC41E750016165D /* REFormattedNumberFieldTests */, + 7E0E2CF31AC420C60016165D /* REFormattedNumberField-iOS-dynamic */, 7E0E2CD01AC41E750016165D /* Products */, + 7E0E2D1F1AC425820016165D /* REFormattedNumberField-iOS-dynamic copy-Info.plist */, ); sourceTree = ""; }; @@ -59,6 +92,8 @@ isa = PBXGroup; children = ( 7E0E2CCF1AC41E750016165D /* libREFormattedNumberField.a */, + 7E0E2CF21AC420C60016165D /* REFormattedNumberField.framework */, + 7E0E2D1E1AC425810016165D /* REFormattedNumberField.framework */, ); name = Products; sourceTree = ""; @@ -91,8 +126,50 @@ name = "Supporting Files"; sourceTree = ""; }; + 7E0E2CF31AC420C60016165D /* REFormattedNumberField-iOS-dynamic */ = { + isa = PBXGroup; + children = ( + 7E0E2CF61AC420C60016165D /* REFormattedNumberField-iOS-dynamic.h */, + 7E0E2CF41AC420C60016165D /* Supporting Files */, + ); + path = "REFormattedNumberField-iOS-dynamic"; + sourceTree = ""; + }; + 7E0E2CF41AC420C60016165D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 7E0E2CF51AC420C60016165D /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; /* End PBXGroup section */ +/* Begin PBXHeadersBuildPhase section */ + 7E0E2CEF1AC420C60016165D /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 7E0E2CF71AC420C60016165D /* REFormattedNumberField-iOS-dynamic.h in Headers */, + 7E0E2D0D1AC420D90016165D /* REFormattedNumberField.h in Headers */, + 7E0E2D0F1AC420D90016165D /* REFormattedNumberField-headers.h in Headers */, + 7E0E2D0B1AC420D90016165D /* NSString+RENumberFormat.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7E0E2D151AC425810016165D /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 7E0E2D161AC425810016165D /* REFormattedNumberField-iOS-dynamic.h in Headers */, + 7E0E2D171AC425810016165D /* REFormattedNumberField.h in Headers */, + 7E0E2D181AC425810016165D /* REFormattedNumberField-headers.h in Headers */, + 7E0E2D191AC425810016165D /* NSString+RENumberFormat.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + /* Begin PBXNativeTarget section */ 7E0E2CCE1AC41E750016165D /* REFormattedNumberField */ = { isa = PBXNativeTarget; @@ -111,6 +188,42 @@ productReference = 7E0E2CCF1AC41E750016165D /* libREFormattedNumberField.a */; productType = "com.apple.product-type.library.static"; }; + 7E0E2CF11AC420C60016165D /* REFormattedNumberField-iOS-dynamic */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7E0E2D051AC420C60016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField-iOS-dynamic" */; + buildPhases = ( + 7E0E2CED1AC420C60016165D /* Sources */, + 7E0E2CEE1AC420C60016165D /* Frameworks */, + 7E0E2CEF1AC420C60016165D /* Headers */, + 7E0E2CF01AC420C60016165D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "REFormattedNumberField-iOS-dynamic"; + productName = "REFormattedNumberField-iOS-dynamic"; + productReference = 7E0E2CF21AC420C60016165D /* REFormattedNumberField.framework */; + productType = "com.apple.product-type.framework"; + }; + 7E0E2D101AC425810016165D /* REFormattedNumberField-iOS-static */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7E0E2D1B1AC425810016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField-iOS-static" */; + buildPhases = ( + 7E0E2D111AC425810016165D /* Sources */, + 7E0E2D141AC425810016165D /* Frameworks */, + 7E0E2D151AC425810016165D /* Headers */, + 7E0E2D1A1AC425810016165D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "REFormattedNumberField-iOS-static"; + productName = "REFormattedNumberField-iOS-dynamic"; + productReference = 7E0E2D1E1AC425810016165D /* REFormattedNumberField.framework */; + productType = "com.apple.product-type.framework"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -123,6 +236,9 @@ 7E0E2CCE1AC41E750016165D = { CreatedOnToolsVersion = 6.2; }; + 7E0E2CF11AC420C60016165D = { + CreatedOnToolsVersion = 6.2; + }; }; }; buildConfigurationList = 7E0E2CCA1AC41E750016165D /* Build configuration list for PBXProject "REFormattedNumberField" */; @@ -138,10 +254,29 @@ projectRoot = ""; targets = ( 7E0E2CCE1AC41E750016165D /* REFormattedNumberField */, + 7E0E2CF11AC420C60016165D /* REFormattedNumberField-iOS-dynamic */, + 7E0E2D101AC425810016165D /* REFormattedNumberField-iOS-static */, ); }; /* End PBXProject section */ +/* Begin PBXResourcesBuildPhase section */ + 7E0E2CF01AC420C60016165D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7E0E2D1A1AC425810016165D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 7E0E2CCB1AC41E750016165D /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -152,6 +287,24 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 7E0E2CED1AC420C60016165D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7E0E2D0C1AC420D90016165D /* NSString+RENumberFormat.m in Sources */, + 7E0E2D0E1AC420D90016165D /* REFormattedNumberField.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 7E0E2D111AC425810016165D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7E0E2D121AC425810016165D /* NSString+RENumberFormat.m in Sources */, + 7E0E2D131AC425810016165D /* REFormattedNumberField.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ @@ -247,6 +400,96 @@ }; name = Release; }; + 7E0E2D061AC420C60016165D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "REFormattedNumberField-iOS-dynamic/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = REFormattedNumberField; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 7E0E2D071AC420C60016165D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "REFormattedNumberField-iOS-dynamic/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = REFormattedNumberField; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 7E0E2D1C1AC425810016165D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "REFormattedNumberField-iOS-dynamic copy-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + PRODUCT_NAME = REFormattedNumberField; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 7E0E2D1D1AC425810016165D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "REFormattedNumberField-iOS-dynamic copy-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MACH_O_TYPE = staticlib; + PRODUCT_NAME = REFormattedNumberField; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -268,6 +511,23 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 7E0E2D051AC420C60016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField-iOS-dynamic" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7E0E2D061AC420C60016165D /* Debug */, + 7E0E2D071AC420C60016165D /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 7E0E2D1B1AC425810016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField-iOS-static" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7E0E2D1C1AC425810016165D /* Debug */, + 7E0E2D1D1AC425810016165D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 7E0E2CC71AC41E750016165D /* Project object */; From 898799ff299e7263c2e28e600db175a42951218c Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 13:40:08 +0200 Subject: [PATCH 8/9] [framework] Added Carthage support --- .../project.pbxproj | 7 +- ...EFormattedNumberField-iOS-dynamic.xcscheme | 86 +++++++++++++++++++ 2 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 REFormattedNumberField.xcodeproj/xcshareddata/xcschemes/REFormattedNumberField-iOS-dynamic.xcscheme diff --git a/REFormattedNumberField.xcodeproj/project.pbxproj b/REFormattedNumberField.xcodeproj/project.pbxproj index 62dbcad..d0b2fe7 100644 --- a/REFormattedNumberField.xcodeproj/project.pbxproj +++ b/REFormattedNumberField.xcodeproj/project.pbxproj @@ -341,7 +341,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.2; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -375,7 +375,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.2; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; @@ -385,6 +385,7 @@ 7E0E2CE41AC41E750016165D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + IPHONEOS_DEPLOYMENT_TARGET = 7.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -394,6 +395,7 @@ 7E0E2CE51AC41E750016165D /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + IPHONEOS_DEPLOYMENT_TARGET = 7.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -518,6 +520,7 @@ 7E0E2D071AC420C60016165D /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 7E0E2D1B1AC425810016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField-iOS-static" */ = { isa = XCConfigurationList; diff --git a/REFormattedNumberField.xcodeproj/xcshareddata/xcschemes/REFormattedNumberField-iOS-dynamic.xcscheme b/REFormattedNumberField.xcodeproj/xcshareddata/xcschemes/REFormattedNumberField-iOS-dynamic.xcscheme new file mode 100644 index 0000000..778e25b --- /dev/null +++ b/REFormattedNumberField.xcodeproj/xcshareddata/xcschemes/REFormattedNumberField-iOS-dynamic.xcscheme @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 18d13fee5d7fce468918518994adf243babc8817 Mon Sep 17 00:00:00 2001 From: Aleksandr Dodatko Date: Thu, 26 Mar 2015 17:41:28 +0200 Subject: [PATCH 9/9] Uncommented |deleteBackward| method --- REFormattedNumberField/REFormattedNumberField.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/REFormattedNumberField/REFormattedNumberField.m b/REFormattedNumberField/REFormattedNumberField.m index cd4ff09..a8be0af 100644 --- a/REFormattedNumberField/REFormattedNumberField.m +++ b/REFormattedNumberField/REFormattedNumberField.m @@ -81,7 +81,6 @@ - (void)formatInput:(UITextField *)textField } } -/* - (void)deleteBackward { NSInteger decimalPosition = -1; @@ -106,7 +105,7 @@ - (void)deleteBackward // [self sendActionsForControlEvents:UIControlEventEditingChanged]; } -*/ + - (NSString *)unformattedText {