Skip to content

Commit

Permalink
0.1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
UknowHui committed Jan 10, 2019
1 parent c30d0eb commit 8074dbe
Show file tree
Hide file tree
Showing 23 changed files with 146 additions and 319 deletions.
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- NRWViewLib (0.1.14)
- NRWViewLib (0.1.15)

DEPENDENCIES:
- NRWViewLib (from `../`)
Expand All @@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
NRWViewLib: 7c32fb4ad6944f7d1e03f735d4730fe4b1595df8
NRWViewLib: 35d8aa65c92235bda58b4982474d647d0d0085fb

PODFILE CHECKSUM: 45ca30b1408e4ff160d0a2b1229c3494cf3666d2

Expand Down
1 change: 0 additions & 1 deletion Example/Pods/Headers/Private/NRWViewLib/UIButton+NRWTest.h

This file was deleted.

1 change: 0 additions & 1 deletion Example/Pods/Headers/Private/NRWViewLib/UIColor+test.h

This file was deleted.

1 change: 0 additions & 1 deletion Example/Pods/Headers/Private/NRWViewLib/UIFont+test.h

This file was deleted.

1 change: 0 additions & 1 deletion Example/Pods/Headers/Public/NRWViewLib/UIButton+NRWTest.h

This file was deleted.

1 change: 0 additions & 1 deletion Example/Pods/Headers/Public/NRWViewLib/UIColor+test.h

This file was deleted.

1 change: 0 additions & 1 deletion Example/Pods/Headers/Public/NRWViewLib/UIFont+test.h

This file was deleted.

4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/NRWViewLib.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

294 changes: 135 additions & 159 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion NRWViewLib.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "NRWViewLib"
s.version = "0.1.14"
s.version = "0.1.15"
s.summary = "Base View"
s.description = "Base View Lib"
s.homepage = "https://github.com/UknowHui/NRWViewLib"
Expand Down
3 changes: 0 additions & 3 deletions NRWViewLib/NRWViewLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@
#import "NSError+debugDescription.h"
#import "UIButton+NRWImageTitle.h"
#import "UIImage+ClearImage.h"
#import "UIColor+test.h"
#import "UIView+NRWFrame.h"
#import "UIColor+Hex.h"
#import "UIFont+test.h"
#import "NRWAlert.h"
#import "UIButton+NRWTest.h"

#endif /* NRWViewLib_h */
5 changes: 1 addition & 4 deletions NRWViewLib/UIButton+NRWImageTitle.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ typedef NS_ENUM(NSUInteger, NRWButtonEdgeInsetsStyle) {

@interface UIButton (NRWImageTitle)

- (void)layoutButtonWithEdgeInsets:(NRWButtonEdgeInsetsStyle)style
imageTitleSpace:(CGFloat)space;

+ (UIButton *)layoutButtonWith:(NRWButtonEdgeInsetsStyle)style
- (void)layoutButtonWithEdgeInsetsStyle:(NRWButtonEdgeInsetsStyle)style
imageTitleSpace:(CGFloat)space;

@end
11 changes: 1 addition & 10 deletions NRWViewLib/UIButton+NRWImageTitle.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@implementation UIButton (NRWImageTitle)

- (void)layoutButtonWithEdgeInsets:(NRWButtonEdgeInsetsStyle)style
- (void)layoutButtonWithEdgeInsetsStyle:(NRWButtonEdgeInsetsStyle)style
imageTitleSpace:(CGFloat)space
{
// self.backgroundColor = [UIColor cyanColor];
Expand Down Expand Up @@ -76,13 +76,4 @@ - (void)layoutButtonWithEdgeInsets:(NRWButtonEdgeInsetsStyle)style
self.imageEdgeInsets = imageEdgeInsets;
}

+ (UIButton *)layoutButtonWith:(NRWButtonEdgeInsetsStyle)style
imageTitleSpace:(CGFloat)space {

UIButton *button = [[UIButton alloc] init];
[button setTitle:@"test" forState:UIControlStateNormal];

return button;
}

@end
18 changes: 0 additions & 18 deletions NRWViewLib/UIButton+NRWTest.h

This file was deleted.

16 changes: 0 additions & 16 deletions NRWViewLib/UIButton+NRWTest.m

This file was deleted.

4 changes: 0 additions & 4 deletions NRWViewLib/UIColor+Hex.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (Hex)

+ (instancetype)colorFromHexString:(NSString *)hexString;

@end

NS_ASSUME_NONNULL_END
18 changes: 0 additions & 18 deletions NRWViewLib/UIColor+test.h

This file was deleted.

17 changes: 0 additions & 17 deletions NRWViewLib/UIColor+test.m

This file was deleted.

17 changes: 0 additions & 17 deletions NRWViewLib/UIFont+test.h

This file was deleted.

14 changes: 0 additions & 14 deletions NRWViewLib/UIFont+test.m

This file was deleted.

6 changes: 2 additions & 4 deletions NRWViewLib/UIImage+ClearImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface UIImage (ClearImage)

+(UIImage *)clearImage;
+(UIImage *)clearImages;
+ (UIImage *)testImage;

@end
NS_ASSUME_NONNULL_END
22 changes: 0 additions & 22 deletions NRWViewLib/UIImage+ClearImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,5 @@ +(UIImage *)clearImage{

return img;
}
+(UIImage *)clearImages{
CGRect rect = CGRectMake(0, 0, 1, 1);

UIGraphicsBeginImageContext(rect.size);

CGContextRef context = UIGraphicsGetCurrentContext();

CGContextSetFillColorWithColor(context, [[UIColor clearColor] CGColor]);

CGContextFillRect(context, rect);

UIImage *img = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

return img;
}

+ (UIImage *)testImage {

return [[UIImage alloc] init];
}

@end

0 comments on commit 8074dbe

Please sign in to comment.