diff --git a/TezButton.podspec b/TezButton.podspec new file mode 100644 index 0000000..1ed44d8 --- /dev/null +++ b/TezButton.podspec @@ -0,0 +1,23 @@ +# +# Be sure to run `pod spec lint TezButton.podspec' to ensure this is a +# valid spec and to remove all comments including this before submitting the spec. +# +# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html +# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ +# +@version = "0.1" +Pod::Spec.new do |s| + + s.name = "TezButton" + s.version = @version + s.summary = "TezButton is include Title/Backgound Color, border, corner radius options and Bottom/Left label, Include data button." + s.homepage = 'https://github.com/tezpark/TezButton' + s.screenshots = 'https://cloud.githubusercontent.com/assets/389004/25770963/5abfdf1c-327e-11e7-8432-187f28a3bb81.png' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.author = { 'tezpark' => 'ptswin@gmail.com' } + s.source = { :git => 'https://github.com/tezpark/TezButton.git', :tag => @version } + s.source_files = 'TezButton/*.*' + s.ios.deployment_target = '8.0' + s.frameworks = 'UIKit' + +end diff --git a/TezButtons/TezButtons.h b/TezButton/TezButton.h similarity index 99% rename from TezButtons/TezButtons.h rename to TezButton/TezButton.h index 079ef31..a2883b3 100644 --- a/TezButtons/TezButtons.h +++ b/TezButton/TezButton.h @@ -1,6 +1,5 @@ // -// TezButtons.h -// foodflyios +// TezButton.h // // Created by TezPark on 2015. 11. 24.. // Copyright © 2015년 TezPark. All rights reserved. diff --git a/TezButtons/TezButtons.m b/TezButton/TezButton.m similarity index 99% rename from TezButtons/TezButtons.m rename to TezButton/TezButton.m index a037539..47d9d68 100644 --- a/TezButtons/TezButtons.m +++ b/TezButton/TezButton.m @@ -1,12 +1,11 @@ // -// TezButtons.m -// foodflyios +// TezButton.m // // Created by TezPark on 2015. 11. 24.. // Copyright © 2015년 TezPark. All rights reserved. // -#import "TezButtons.h" +#import "TezButton.h" static const double DefaultMagnification = 1; static const CGFloat DefaultFontSize = 13; @@ -520,7 +519,7 @@ - (void)setAlignment:(BOOL)isVertical isSwitching:(BOOL)isSwitching withGap:(CGF CGRect imageFrame = self.imageView.frame; CGRect titleFrame = self.titleLabel.bounds; - //현재 설정된 inset값 가져온다. + // Get current button EdgeInset value UIEdgeInsets contentInset = [self contentEdgeInsets]; UIEdgeInsets titleInset = [self titleEdgeInsets]; UIEdgeInsets imageInset = [self imageEdgeInsets]; diff --git a/TezButtonExample.xcodeproj/project.pbxproj b/TezButtonExample.xcodeproj/project.pbxproj index 496fddf..4acafa0 100644 --- a/TezButtonExample.xcodeproj/project.pbxproj +++ b/TezButtonExample.xcodeproj/project.pbxproj @@ -13,8 +13,8 @@ 411A1B321E62BFAE00FFA694 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 411A1B301E62BFAE00FFA694 /* Main.storyboard */; }; 411A1B341E62BFAE00FFA694 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 411A1B331E62BFAE00FFA694 /* Assets.xcassets */; }; 411A1B371E62BFAE00FFA694 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 411A1B351E62BFAE00FFA694 /* LaunchScreen.storyboard */; }; - 411A1D081E62C14C00FFA694 /* TezButtons.m in Sources */ = {isa = PBXBuildFile; fileRef = 411A1D071E62C14C00FFA694 /* TezButtons.m */; }; 415765861E6C04C8007584FF /* check.png in Resources */ = {isa = PBXBuildFile; fileRef = 415765851E6C04C8007584FF /* check.png */; }; + D05664C21EC00E4B00612927 /* TezButton.m in Sources */ = {isa = PBXBuildFile; fileRef = D05664C11EC00E4B00612927 /* TezButton.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -28,9 +28,9 @@ 411A1B331E62BFAE00FFA694 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 411A1B361E62BFAE00FFA694 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 411A1B381E62BFAE00FFA694 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 411A1D061E62C14C00FFA694 /* TezButtons.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TezButtons.h; sourceTree = ""; }; - 411A1D071E62C14C00FFA694 /* TezButtons.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TezButtons.m; sourceTree = ""; }; 415765851E6C04C8007584FF /* check.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = check.png; sourceTree = ""; }; + D05664C01EC00E4B00612927 /* TezButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TezButton.h; sourceTree = ""; }; + D05664C11EC00E4B00612927 /* TezButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TezButton.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -47,7 +47,7 @@ 411A1B1B1E62BFAE00FFA694 = { isa = PBXGroup; children = ( - 411A1D051E62C14C00FFA694 /* TezButtons */, + D05664BF1EC00E4B00612927 /* TezButton */, 411A1B261E62BFAE00FFA694 /* TezButtonExample */, 411A1B251E62BFAE00FFA694 /* Products */, ); @@ -86,21 +86,21 @@ name = "Supporting Files"; sourceTree = ""; }; - 411A1D051E62C14C00FFA694 /* TezButtons */ = { + 415765841E6C04C0007584FF /* Resource */ = { isa = PBXGroup; children = ( - 411A1D061E62C14C00FFA694 /* TezButtons.h */, - 411A1D071E62C14C00FFA694 /* TezButtons.m */, + 415765851E6C04C8007584FF /* check.png */, ); - path = TezButtons; + name = Resource; sourceTree = ""; }; - 415765841E6C04C0007584FF /* Resource */ = { + D05664BF1EC00E4B00612927 /* TezButton */ = { isa = PBXGroup; children = ( - 415765851E6C04C8007584FF /* check.png */, + D05664C01EC00E4B00612927 /* TezButton.h */, + D05664C11EC00E4B00612927 /* TezButton.m */, ); - name = Resource; + path = TezButton; sourceTree = ""; }; /* End PBXGroup section */ @@ -177,8 +177,8 @@ buildActionMask = 2147483647; files = ( 411A1B2F1E62BFAE00FFA694 /* ViewController.m in Sources */, - 411A1D081E62C14C00FFA694 /* TezButtons.m in Sources */, 411A1B2C1E62BFAE00FFA694 /* AppDelegate.m in Sources */, + D05664C21EC00E4B00612927 /* TezButton.m in Sources */, 411A1B291E62BFAE00FFA694 /* main.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/TezButtonExample/ViewController.m b/TezButtonExample/ViewController.m index 52cd425..e61e093 100644 --- a/TezButtonExample/ViewController.m +++ b/TezButtonExample/ViewController.m @@ -7,7 +7,7 @@ // #import "ViewController.h" -#import "TezButtons.h" +#import "TezButton.h" @interface ViewController ()