diff --git a/OHAttributedStringAdditions.xcodeproj/project.pbxproj b/OHAttributedStringAdditions.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5fe5d19 --- /dev/null +++ b/OHAttributedStringAdditions.xcodeproj/project.pbxproj @@ -0,0 +1,319 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 23FC196B1CE61CC20004BBF5 /* NSAttributedString+OHAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 23FC19621CE61CC20004BBF5 /* NSAttributedString+OHAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 23FC196C1CE61CC20004BBF5 /* NSAttributedString+OHAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 23FC19631CE61CC20004BBF5 /* NSAttributedString+OHAdditions.m */; }; + 23FC196D1CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 23FC19641CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 23FC196E1CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 23FC19651CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.m */; }; + 23FC196F1CE61CC20004BBF5 /* OHAttributedStringAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 23FC19661CE61CC20004BBF5 /* OHAttributedStringAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 23FC19701CE61CC20004BBF5 /* UIFont+OHAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 23FC19671CE61CC20004BBF5 /* UIFont+OHAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 23FC19711CE61CC20004BBF5 /* UIFont+OHAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 23FC19681CE61CC20004BBF5 /* UIFont+OHAdditions.m */; }; + 23FC19721CE61CC20004BBF5 /* UILabel+OHAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 23FC19691CE61CC20004BBF5 /* UILabel+OHAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 23FC19731CE61CC20004BBF5 /* UILabel+OHAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 23FC196A1CE61CC20004BBF5 /* UILabel+OHAdditions.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 23FC19571CE61C550004BBF5 /* OHAttributedStringAdditions.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OHAttributedStringAdditions.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 23FC195C1CE61C560004BBF5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 23FC19621CE61CC20004BBF5 /* NSAttributedString+OHAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSAttributedString+OHAdditions.h"; path = "Source/NSAttributedString+OHAdditions.h"; sourceTree = SOURCE_ROOT; }; + 23FC19631CE61CC20004BBF5 /* NSAttributedString+OHAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSAttributedString+OHAdditions.m"; path = "Source/NSAttributedString+OHAdditions.m"; sourceTree = SOURCE_ROOT; }; + 23FC19641CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSMutableAttributedString+OHAdditions.h"; path = "Source/NSMutableAttributedString+OHAdditions.h"; sourceTree = SOURCE_ROOT; }; + 23FC19651CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSMutableAttributedString+OHAdditions.m"; path = "Source/NSMutableAttributedString+OHAdditions.m"; sourceTree = SOURCE_ROOT; }; + 23FC19661CE61CC20004BBF5 /* OHAttributedStringAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OHAttributedStringAdditions.h; path = Source/OHAttributedStringAdditions.h; sourceTree = SOURCE_ROOT; }; + 23FC19671CE61CC20004BBF5 /* UIFont+OHAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIFont+OHAdditions.h"; path = "Source/UIFont+OHAdditions.h"; sourceTree = SOURCE_ROOT; }; + 23FC19681CE61CC20004BBF5 /* UIFont+OHAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIFont+OHAdditions.m"; path = "Source/UIFont+OHAdditions.m"; sourceTree = SOURCE_ROOT; }; + 23FC19691CE61CC20004BBF5 /* UILabel+OHAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UILabel+OHAdditions.h"; path = "Source/UILabel+OHAdditions.h"; sourceTree = SOURCE_ROOT; }; + 23FC196A1CE61CC20004BBF5 /* UILabel+OHAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UILabel+OHAdditions.m"; path = "Source/UILabel+OHAdditions.m"; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 23FC19531CE61C550004BBF5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 23FC194D1CE61C550004BBF5 = { + isa = PBXGroup; + children = ( + 23FC19591CE61C560004BBF5 /* OHAttributedStringAdditions */, + 23FC19581CE61C550004BBF5 /* Products */, + ); + sourceTree = ""; + }; + 23FC19581CE61C550004BBF5 /* Products */ = { + isa = PBXGroup; + children = ( + 23FC19571CE61C550004BBF5 /* OHAttributedStringAdditions.framework */, + ); + name = Products; + sourceTree = ""; + }; + 23FC19591CE61C560004BBF5 /* OHAttributedStringAdditions */ = { + isa = PBXGroup; + children = ( + 23FC19661CE61CC20004BBF5 /* OHAttributedStringAdditions.h */, + 23FC19621CE61CC20004BBF5 /* NSAttributedString+OHAdditions.h */, + 23FC19631CE61CC20004BBF5 /* NSAttributedString+OHAdditions.m */, + 23FC19641CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.h */, + 23FC19651CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.m */, + 23FC19671CE61CC20004BBF5 /* UIFont+OHAdditions.h */, + 23FC19681CE61CC20004BBF5 /* UIFont+OHAdditions.m */, + 23FC19691CE61CC20004BBF5 /* UILabel+OHAdditions.h */, + 23FC196A1CE61CC20004BBF5 /* UILabel+OHAdditions.m */, + 23FC195C1CE61C560004BBF5 /* Info.plist */, + ); + path = OHAttributedStringAdditions; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 23FC19541CE61C550004BBF5 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 23FC196F1CE61CC20004BBF5 /* OHAttributedStringAdditions.h in Headers */, + 23FC19701CE61CC20004BBF5 /* UIFont+OHAdditions.h in Headers */, + 23FC196B1CE61CC20004BBF5 /* NSAttributedString+OHAdditions.h in Headers */, + 23FC196D1CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.h in Headers */, + 23FC19721CE61CC20004BBF5 /* UILabel+OHAdditions.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 23FC19561CE61C550004BBF5 /* OHAttributedStringAdditions */ = { + isa = PBXNativeTarget; + buildConfigurationList = 23FC195F1CE61C560004BBF5 /* Build configuration list for PBXNativeTarget "OHAttributedStringAdditions" */; + buildPhases = ( + 23FC19521CE61C550004BBF5 /* Sources */, + 23FC19531CE61C550004BBF5 /* Frameworks */, + 23FC19541CE61C550004BBF5 /* Headers */, + 23FC19551CE61C550004BBF5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = OHAttributedStringAdditions; + productName = OHAttributedStringAdditions; + productReference = 23FC19571CE61C550004BBF5 /* OHAttributedStringAdditions.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 23FC194E1CE61C550004BBF5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0730; + ORGANIZATIONNAME = AliSoftware; + TargetAttributes = { + 23FC19561CE61C550004BBF5 = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 23FC19511CE61C550004BBF5 /* Build configuration list for PBXProject "OHAttributedStringAdditions" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 23FC194D1CE61C550004BBF5; + productRefGroup = 23FC19581CE61C550004BBF5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 23FC19561CE61C550004BBF5 /* OHAttributedStringAdditions */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 23FC19551CE61C550004BBF5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 23FC19521CE61C550004BBF5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 23FC19711CE61CC20004BBF5 /* UIFont+OHAdditions.m in Sources */, + 23FC196C1CE61CC20004BBF5 /* NSAttributedString+OHAdditions.m in Sources */, + 23FC196E1CE61CC20004BBF5 /* NSMutableAttributedString+OHAdditions.m in Sources */, + 23FC19731CE61CC20004BBF5 /* UILabel+OHAdditions.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 23FC195D1CE61C560004BBF5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + 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 = 9.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 23FC195E1CE61C560004BBF5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + 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 = 9.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 23FC19601CE61C560004BBF5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = OHAttributedStringAdditions/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.alisoftware.AttributedString.OHAttributedStringAdditions; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + 23FC19611CE61C560004BBF5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = OHAttributedStringAdditions/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.alisoftware.AttributedString.OHAttributedStringAdditions; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 23FC19511CE61C550004BBF5 /* Build configuration list for PBXProject "OHAttributedStringAdditions" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 23FC195D1CE61C560004BBF5 /* Debug */, + 23FC195E1CE61C560004BBF5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 23FC195F1CE61C560004BBF5 /* Build configuration list for PBXNativeTarget "OHAttributedStringAdditions" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 23FC19601CE61C560004BBF5 /* Debug */, + 23FC19611CE61C560004BBF5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 23FC194E1CE61C550004BBF5 /* Project object */; +} diff --git a/OHAttributedStringAdditions.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/OHAttributedStringAdditions.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..d4881d3 --- /dev/null +++ b/OHAttributedStringAdditions.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/OHAttributedStringAdditions.xcodeproj/xcshareddata/xcschemes/OHAttributedStringAdditions.xcscheme b/OHAttributedStringAdditions.xcodeproj/xcshareddata/xcschemes/OHAttributedStringAdditions.xcscheme new file mode 100644 index 0000000..d7dd8af --- /dev/null +++ b/OHAttributedStringAdditions.xcodeproj/xcshareddata/xcschemes/OHAttributedStringAdditions.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OHAttributedStringAdditions/Info.plist b/OHAttributedStringAdditions/Info.plist new file mode 100644 index 0000000..d3de8ee --- /dev/null +++ b/OHAttributedStringAdditions/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/README.md b/README.md index beaea67..838cc9f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Version](http://cocoapod-badges.herokuapp.com/v/OHAttributedStringAdditions/badge.png)](http://cocoadocs.org/docsets/OHAttributedStringAdditions) [![Platform](http://cocoapod-badges.herokuapp.com/p/OHAttributedStringAdditions/badge.png)](http://cocoadocs.org/docsets/OHAttributedStringAdditions) [![Build Status](https://travis-ci.org/AliSoftware/OHAttributedStringAdditions.png?branch=master)](https://travis-ci.org/AliSoftware/OHAttributedStringAdditions) +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) This pod contains categories on `NSAttributedString` to add a lot of very useful convenience methods to manipulate attributed strings. diff --git a/Source/OHAttributedStringAdditions.h b/Source/OHAttributedStringAdditions.h index c5f158d..6e4c853 100644 --- a/Source/OHAttributedStringAdditions.h +++ b/Source/OHAttributedStringAdditions.h @@ -24,6 +24,14 @@ * ******************************************************************************/ +#import + +//! Project version number for OHAttributedStringAdditions. +FOUNDATION_EXPORT double OHAttributedStringAdditionsVersionNumber; + +//! Project version string for OHAttributedStringAdditions. +FOUNDATION_EXPORT const unsigned char OHAttributedStringAdditionsVersionString[]; + #import "NSAttributedString+OHAdditions.h" #import "NSMutableAttributedString+OHAdditions.h" #import "UIFont+OHAdditions.h"