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-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.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" }
diff --git a/REFormattedNumberField.xcodeproj/project.pbxproj b/REFormattedNumberField.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..d0b2fe7
--- /dev/null
+++ b/REFormattedNumberField.xcodeproj/project.pbxproj
@@ -0,0 +1,537 @@
+// !$*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 */; };
+ 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 */
+ 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 = ""; };
+ 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 */
+ 7E0E2CCC1AC41E750016165D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ 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 */
+ 7E0E2CC61AC41E750016165D = {
+ isa = PBXGroup;
+ children = (
+ 7E0E2CD11AC41E750016165D /* REFormattedNumberField */,
+ 7E0E2CDE1AC41E750016165D /* REFormattedNumberFieldTests */,
+ 7E0E2CF31AC420C60016165D /* REFormattedNumberField-iOS-dynamic */,
+ 7E0E2CD01AC41E750016165D /* Products */,
+ 7E0E2D1F1AC425820016165D /* REFormattedNumberField-iOS-dynamic copy-Info.plist */,
+ );
+ sourceTree = "";
+ };
+ 7E0E2CD01AC41E750016165D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 7E0E2CCF1AC41E750016165D /* libREFormattedNumberField.a */,
+ 7E0E2CF21AC420C60016165D /* REFormattedNumberField.framework */,
+ 7E0E2D1E1AC425810016165D /* REFormattedNumberField.framework */,
+ );
+ 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 = "";
+ };
+ 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;
+ 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";
+ };
+ 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 */
+ 7E0E2CC71AC41E750016165D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0620;
+ ORGANIZATIONNAME = healthjoy;
+ TargetAttributes = {
+ 7E0E2CCE1AC41E750016165D = {
+ CreatedOnToolsVersion = 6.2;
+ };
+ 7E0E2CF11AC420C60016165D = {
+ 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 */,
+ 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;
+ buildActionMask = 2147483647;
+ files = (
+ 7E0E2CEB1AC41EA80016165D /* NSString+RENumberFormat.m in Sources */,
+ 7E0E2CD51AC41E750016165D /* REFormattedNumberField.m in Sources */,
+ );
+ 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 */
+ 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.0;
+ 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.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 7E0E2CE41AC41E750016165D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ OTHER_LDFLAGS = "-ObjC";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ };
+ name = Debug;
+ };
+ 7E0E2CE51AC41E750016165D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ OTHER_LDFLAGS = "-ObjC";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ };
+ 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 */
+ 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;
+ };
+ 7E0E2D051AC420C60016165D /* Build configuration list for PBXNativeTarget "REFormattedNumberField-iOS-dynamic" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 7E0E2D061AC420C60016165D /* Debug */,
+ 7E0E2D071AC420C60016165D /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 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 */;
+}
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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
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 e6e3de1..a8be0af 100644
--- a/REFormattedNumberField/REFormattedNumberField.m
+++ b/REFormattedNumberField/REFormattedNumberField.m
@@ -24,6 +24,7 @@
//
#import "REFormattedNumberField.h"
+#import "NSString+RENumberFormat.h"
@interface REFormattedNumberField ()
@@ -105,6 +106,7 @@ - (void)deleteBackward
[self sendActionsForControlEvents:UIControlEventEditingChanged];
}
+
- (NSString *)unformattedText
{
if (!self.format) {
@@ -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) {
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
-
-
-
-