Skip to content

Commit

Permalink
* change class name
Browse files Browse the repository at this point in the history
* add podspec
  • Loading branch information
Taesun Park committed May 8, 2017
1 parent d258243 commit 39a9798
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 19 deletions.
23 changes: 23 additions & 0 deletions TezButton.podspec
Original file line number Diff line number Diff line change
@@ -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' => '[email protected]' }
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
3 changes: 1 addition & 2 deletions TezButtons/TezButtons.h → TezButton/TezButton.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// TezButtons.h
// foodflyios
// TezButton.h
//
// Created by TezPark on 2015. 11. 24..
// Copyright © 2015년 TezPark. All rights reserved.
Expand Down
7 changes: 3 additions & 4 deletions TezButtons/TezButtons.m → TezButton/TezButton.m
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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];
Expand Down
24 changes: 12 additions & 12 deletions TezButtonExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -28,9 +28,9 @@
411A1B331E62BFAE00FFA694 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
411A1B361E62BFAE00FFA694 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
411A1B381E62BFAE00FFA694 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
411A1D061E62C14C00FFA694 /* TezButtons.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TezButtons.h; sourceTree = "<group>"; };
411A1D071E62C14C00FFA694 /* TezButtons.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TezButtons.m; sourceTree = "<group>"; };
415765851E6C04C8007584FF /* check.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = check.png; sourceTree = "<group>"; };
D05664C01EC00E4B00612927 /* TezButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TezButton.h; sourceTree = "<group>"; };
D05664C11EC00E4B00612927 /* TezButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TezButton.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -47,7 +47,7 @@
411A1B1B1E62BFAE00FFA694 = {
isa = PBXGroup;
children = (
411A1D051E62C14C00FFA694 /* TezButtons */,
D05664BF1EC00E4B00612927 /* TezButton */,
411A1B261E62BFAE00FFA694 /* TezButtonExample */,
411A1B251E62BFAE00FFA694 /* Products */,
);
Expand Down Expand Up @@ -86,21 +86,21 @@
name = "Supporting Files";
sourceTree = "<group>";
};
411A1D051E62C14C00FFA694 /* TezButtons */ = {
415765841E6C04C0007584FF /* Resource */ = {
isa = PBXGroup;
children = (
411A1D061E62C14C00FFA694 /* TezButtons.h */,
411A1D071E62C14C00FFA694 /* TezButtons.m */,
415765851E6C04C8007584FF /* check.png */,
);
path = TezButtons;
name = Resource;
sourceTree = "<group>";
};
415765841E6C04C0007584FF /* Resource */ = {
D05664BF1EC00E4B00612927 /* TezButton */ = {
isa = PBXGroup;
children = (
415765851E6C04C8007584FF /* check.png */,
D05664C01EC00E4B00612927 /* TezButton.h */,
D05664C11EC00E4B00612927 /* TezButton.m */,
);
name = Resource;
path = TezButton;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion TezButtonExample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "ViewController.h"
#import "TezButtons.h"
#import "TezButton.h"

@interface ViewController ()

Expand Down

0 comments on commit 39a9798

Please sign in to comment.