Skip to content

Commit

Permalink
add to cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciusLu committed Jul 29, 2015
1 parent d62cf0b commit 6481d13
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions DeformationButton.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#DeformationButton.podspec
Pod::Spec.new do |s|
s.name = "DeformationButton"
s.version = "1.0"
s.summary = "a light weight and easy to use tableview slide effect."

s.homepage = "https://github.com/becomedragon/CXLSlideList"
s.license = 'MIT'
s.author = { "Becomedragon Cheng" => "becomedragonlong@gmail.com" }
s.platform = :ios, "7.0"
s.ios.deployment_target = "7.0"
s.source = { :git => "https://github.com/becomedragon/CXLSlideList.git", :tag => s.version}
s.source_files = 'CXLSlideList/CXLSlideList/*.{h,m}'
s.requires_arc = true
end
2 changes: 2 additions & 0 deletions DeformationButton.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = DeformationButton/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -398,6 +399,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = DeformationButton/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down
5 changes: 4 additions & 1 deletion DeformationButton/DeformationButton/DeformationButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ - (instancetype)initWithFrame:(CGRect)frame withColor:(UIColor*)color

-(CGRect)frame{
CGRect frame = [super frame];
// CGRectMake((SELF_WIDTH-286)/2+146, SELF_HEIGHT-84, 140, 36)
self.forDisplayButton.frame = frame;
return frame;
}
Expand All @@ -53,12 +52,16 @@ - (UIImage*)imageWithColor:(UIColor*)color cornerRadius:(CGFloat)cornerRadius{
}

- (void)initSettingWithColor:(UIColor*)color{
self.clipsToBounds = NO;
self.layer.masksToBounds = NO;

scale = 1.2;
bgView = [[UIView alloc]initWithFrame:self.bounds];
bgView.backgroundColor = color;
bgView.userInteractionEnabled = NO;
bgView.hidden = YES;
bgView.layer.cornerRadius = 3;
bgView.layer.masksToBounds = NO;
[self addSubview:bgView];

defaultW = bgView.frame.size.width;
Expand Down

0 comments on commit 6481d13

Please sign in to comment.