Commit 78061d0a by houweibin

1,删除多余,旧,无用的代码文件。

parent a087a082
...@@ -252,10 +252,6 @@ ...@@ -252,10 +252,6 @@
C0F5867F1E24F820001248E2 /* KWMNewGoodsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586541E24F820001248E2 /* KWMNewGoodsCell.xib */; }; C0F5867F1E24F820001248E2 /* KWMNewGoodsCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586541E24F820001248E2 /* KWMNewGoodsCell.xib */; };
C0F586801E24F820001248E2 /* KWMNewTypeView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586561E24F820001248E2 /* KWMNewTypeView.m */; }; C0F586801E24F820001248E2 /* KWMNewTypeView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586561E24F820001248E2 /* KWMNewTypeView.m */; };
C0F586811E24F820001248E2 /* KWMNewTypeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586571E24F820001248E2 /* KWMNewTypeView.xib */; }; C0F586811E24F820001248E2 /* KWMNewTypeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586571E24F820001248E2 /* KWMNewTypeView.xib */; };
C0F586821E24F820001248E2 /* KWMTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586591E24F820001248E2 /* KWMTopView.m */; };
C0F586831E24F820001248E2 /* KWMTopView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F5865A1E24F820001248E2 /* KWMTopView.xib */; };
C0F586841E24F820001248E2 /* KWMWatchView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F5865C1E24F820001248E2 /* KWMWatchView.m */; };
C0F586851E24F820001248E2 /* KWMWatchView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F5865D1E24F820001248E2 /* KWMWatchView.xib */; };
C0F586871E24F820001248E2 /* KWMNewTypeSelectedVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586611E24F820001248E2 /* KWMNewTypeSelectedVC.m */; }; C0F586871E24F820001248E2 /* KWMNewTypeSelectedVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586611E24F820001248E2 /* KWMNewTypeSelectedVC.m */; };
C0F586881E24F820001248E2 /* KWMNewVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586631E24F820001248E2 /* KWMNewVC.m */; }; C0F586881E24F820001248E2 /* KWMNewVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586631E24F820001248E2 /* KWMNewVC.m */; };
C0F586891E24F820001248E2 /* KWMSearchFeedbackVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586651E24F820001248E2 /* KWMSearchFeedbackVC.m */; }; C0F586891E24F820001248E2 /* KWMSearchFeedbackVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586651E24F820001248E2 /* KWMSearchFeedbackVC.m */; };
...@@ -268,8 +264,6 @@ ...@@ -268,8 +264,6 @@
C0F586951E25C17A001248E2 /* KWMProductDetailVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586941E25C17A001248E2 /* KWMProductDetailVC.m */; }; C0F586951E25C17A001248E2 /* KWMProductDetailVC.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586941E25C17A001248E2 /* KWMProductDetailVC.m */; };
C0F5869B1E25D05F001248E2 /* KWMProductDetailView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F5869A1E25D05F001248E2 /* KWMProductDetailView.m */; }; C0F5869B1E25D05F001248E2 /* KWMProductDetailView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F5869A1E25D05F001248E2 /* KWMProductDetailView.m */; };
C0F5869D1E25D3B6001248E2 /* KWMProductDetailView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F5869C1E25D3B6001248E2 /* KWMProductDetailView.xib */; }; C0F5869D1E25D3B6001248E2 /* KWMProductDetailView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F5869C1E25D3B6001248E2 /* KWMProductDetailView.xib */; };
C0F586A11E276E56001248E2 /* KWMRecommendView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586A01E276E56001248E2 /* KWMRecommendView.xib */; };
C0F586A61E276EB7001248E2 /* KWMRecommendView.m in Sources */ = {isa = PBXBuildFile; fileRef = C0F586A51E276EB7001248E2 /* KWMRecommendView.m */; };
C0F586AE1E279574001248E2 /* KWMBottomView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586AD1E279574001248E2 /* KWMBottomView.xib */; }; C0F586AE1E279574001248E2 /* KWMBottomView.xib in Resources */ = {isa = PBXBuildFile; fileRef = C0F586AD1E279574001248E2 /* KWMBottomView.xib */; };
C0FC278E1D9B73B000C5CFFE /* KWMGiftCardCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C0FC278D1D9B73B000C5CFFE /* KWMGiftCardCell.m */; }; C0FC278E1D9B73B000C5CFFE /* KWMGiftCardCell.m in Sources */ = {isa = PBXBuildFile; fileRef = C0FC278D1D9B73B000C5CFFE /* KWMGiftCardCell.m */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
...@@ -730,12 +724,6 @@ ...@@ -730,12 +724,6 @@
C0F586551E24F820001248E2 /* KWMNewTypeView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMNewTypeView.h; sourceTree = "<group>"; }; C0F586551E24F820001248E2 /* KWMNewTypeView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMNewTypeView.h; sourceTree = "<group>"; };
C0F586561E24F820001248E2 /* KWMNewTypeView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMNewTypeView.m; sourceTree = "<group>"; }; C0F586561E24F820001248E2 /* KWMNewTypeView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMNewTypeView.m; sourceTree = "<group>"; };
C0F586571E24F820001248E2 /* KWMNewTypeView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMNewTypeView.xib; sourceTree = "<group>"; }; C0F586571E24F820001248E2 /* KWMNewTypeView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMNewTypeView.xib; sourceTree = "<group>"; };
C0F586581E24F820001248E2 /* KWMTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMTopView.h; sourceTree = "<group>"; };
C0F586591E24F820001248E2 /* KWMTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMTopView.m; sourceTree = "<group>"; };
C0F5865A1E24F820001248E2 /* KWMTopView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMTopView.xib; sourceTree = "<group>"; };
C0F5865B1E24F820001248E2 /* KWMWatchView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMWatchView.h; sourceTree = "<group>"; };
C0F5865C1E24F820001248E2 /* KWMWatchView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMWatchView.m; sourceTree = "<group>"; };
C0F5865D1E24F820001248E2 /* KWMWatchView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMWatchView.xib; sourceTree = "<group>"; };
C0F586601E24F820001248E2 /* KWMNewTypeSelectedVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMNewTypeSelectedVC.h; sourceTree = "<group>"; }; C0F586601E24F820001248E2 /* KWMNewTypeSelectedVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMNewTypeSelectedVC.h; sourceTree = "<group>"; };
C0F586611E24F820001248E2 /* KWMNewTypeSelectedVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMNewTypeSelectedVC.m; sourceTree = "<group>"; }; C0F586611E24F820001248E2 /* KWMNewTypeSelectedVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMNewTypeSelectedVC.m; sourceTree = "<group>"; };
C0F586621E24F820001248E2 /* KWMNewVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMNewVC.h; sourceTree = "<group>"; }; C0F586621E24F820001248E2 /* KWMNewVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMNewVC.h; sourceTree = "<group>"; };
...@@ -758,9 +746,6 @@ ...@@ -758,9 +746,6 @@
C0F586991E25D05F001248E2 /* KWMProductDetailView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMProductDetailView.h; sourceTree = "<group>"; }; C0F586991E25D05F001248E2 /* KWMProductDetailView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMProductDetailView.h; sourceTree = "<group>"; };
C0F5869A1E25D05F001248E2 /* KWMProductDetailView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMProductDetailView.m; sourceTree = "<group>"; }; C0F5869A1E25D05F001248E2 /* KWMProductDetailView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMProductDetailView.m; sourceTree = "<group>"; };
C0F5869C1E25D3B6001248E2 /* KWMProductDetailView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMProductDetailView.xib; sourceTree = "<group>"; }; C0F5869C1E25D3B6001248E2 /* KWMProductDetailView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMProductDetailView.xib; sourceTree = "<group>"; };
C0F586A01E276E56001248E2 /* KWMRecommendView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMRecommendView.xib; sourceTree = "<group>"; };
C0F586A41E276EB7001248E2 /* KWMRecommendView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMRecommendView.h; sourceTree = "<group>"; };
C0F586A51E276EB7001248E2 /* KWMRecommendView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMRecommendView.m; sourceTree = "<group>"; };
C0F586AD1E279574001248E2 /* KWMBottomView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMBottomView.xib; sourceTree = "<group>"; }; C0F586AD1E279574001248E2 /* KWMBottomView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KWMBottomView.xib; sourceTree = "<group>"; };
C0FC278C1D9B73B000C5CFFE /* KWMGiftCardCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMGiftCardCell.h; sourceTree = "<group>"; }; C0FC278C1D9B73B000C5CFFE /* KWMGiftCardCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KWMGiftCardCell.h; sourceTree = "<group>"; };
C0FC278D1D9B73B000C5CFFE /* KWMGiftCardCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMGiftCardCell.m; sourceTree = "<group>"; }; C0FC278D1D9B73B000C5CFFE /* KWMGiftCardCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KWMGiftCardCell.m; sourceTree = "<group>"; };
...@@ -1741,18 +1726,9 @@ ...@@ -1741,18 +1726,9 @@
C0F586551E24F820001248E2 /* KWMNewTypeView.h */, C0F586551E24F820001248E2 /* KWMNewTypeView.h */,
C0F586561E24F820001248E2 /* KWMNewTypeView.m */, C0F586561E24F820001248E2 /* KWMNewTypeView.m */,
C0F586571E24F820001248E2 /* KWMNewTypeView.xib */, C0F586571E24F820001248E2 /* KWMNewTypeView.xib */,
C0F586581E24F820001248E2 /* KWMTopView.h */,
C0F586591E24F820001248E2 /* KWMTopView.m */,
C0F5865A1E24F820001248E2 /* KWMTopView.xib */,
C0F5865B1E24F820001248E2 /* KWMWatchView.h */,
C0F5865C1E24F820001248E2 /* KWMWatchView.m */,
C0F5865D1E24F820001248E2 /* KWMWatchView.xib */,
C0F586991E25D05F001248E2 /* KWMProductDetailView.h */, C0F586991E25D05F001248E2 /* KWMProductDetailView.h */,
C0F5869A1E25D05F001248E2 /* KWMProductDetailView.m */, C0F5869A1E25D05F001248E2 /* KWMProductDetailView.m */,
C0F5869C1E25D3B6001248E2 /* KWMProductDetailView.xib */, C0F5869C1E25D3B6001248E2 /* KWMProductDetailView.xib */,
C0F586A41E276EB7001248E2 /* KWMRecommendView.h */,
C0F586A51E276EB7001248E2 /* KWMRecommendView.m */,
C0F586A01E276E56001248E2 /* KWMRecommendView.xib */,
C08827A41E28B4AF006A8B91 /* KWMPageControl.h */, C08827A41E28B4AF006A8B91 /* KWMPageControl.h */,
C08827A51E28B4AF006A8B91 /* KWMPageControl.m */, C08827A51E28B4AF006A8B91 /* KWMPageControl.m */,
C02C7DA41E66B2AE008DC29C /* KWMFilterCell.h */, C02C7DA41E66B2AE008DC29C /* KWMFilterCell.h */,
...@@ -1937,7 +1913,6 @@ ...@@ -1937,7 +1913,6 @@
C0F5867D1E24F820001248E2 /* KWMFilterView.xib in Resources */, C0F5867D1E24F820001248E2 /* KWMFilterView.xib in Resources */,
C0F586811E24F820001248E2 /* KWMNewTypeView.xib in Resources */, C0F586811E24F820001248E2 /* KWMNewTypeView.xib in Resources */,
C0AF039F1DD5C8EE0060623F /* KWMNeedAddressView.xib in Resources */, C0AF039F1DD5C8EE0060623F /* KWMNeedAddressView.xib in Resources */,
C0F586831E24F820001248E2 /* KWMTopView.xib in Resources */,
C084F4541D6D8CA700A0625D /* KWMBlogCell.xib in Resources */, C084F4541D6D8CA700A0625D /* KWMBlogCell.xib in Resources */,
C05910951E34A729002990B3 /* KWMNewGiftCardCell.xib in Resources */, C05910951E34A729002990B3 /* KWMNewGiftCardCell.xib in Resources */,
C0CC14091D7823B0007B5986 /* KWMSizeCell.xib in Resources */, C0CC14091D7823B0007B5986 /* KWMSizeCell.xib in Resources */,
...@@ -1966,11 +1941,9 @@ ...@@ -1966,11 +1941,9 @@
C034E8531D6B10A0006EE129 /* CoreSDWebImage.bundle in Resources */, C034E8531D6B10A0006EE129 /* CoreSDWebImage.bundle in Resources */,
C066650A1D75A2E500F02EF4 /* KWMOrderCell.xib in Resources */, C066650A1D75A2E500F02EF4 /* KWMOrderCell.xib in Resources */,
8091DFB81D6EC1C60020519C /* KWMThreeView.xib in Resources */, 8091DFB81D6EC1C60020519C /* KWMThreeView.xib in Resources */,
C0F586A11E276E56001248E2 /* KWMRecommendView.xib in Resources */,
8091DFB01D6EAD6F0020519C /* KWMSecondView.xib in Resources */, 8091DFB01D6EAD6F0020519C /* KWMSecondView.xib in Resources */,
80C801591D783B5100002306 /* KWMSearchFeedBackView.xib in Resources */, 80C801591D783B5100002306 /* KWMSearchFeedBackView.xib in Resources */,
8091DFA61D6EA0840020519C /* KWMLastView.xib in Resources */, 8091DFA61D6EA0840020519C /* KWMLastView.xib in Resources */,
C0F586851E24F820001248E2 /* KWMWatchView.xib in Resources */,
8054B3241D743F81003A95D3 /* KWMBarandSelectView.xib in Resources */, 8054B3241D743F81003A95D3 /* KWMBarandSelectView.xib in Resources */,
8079FF601D791C780037A71F /* KWMGoodsDetailsView.xib in Resources */, 8079FF601D791C780037A71F /* KWMGoodsDetailsView.xib in Resources */,
C034E8601D6B10A0006EE129 /* PB.bundle in Resources */, C034E8601D6B10A0006EE129 /* PB.bundle in Resources */,
...@@ -2117,9 +2090,7 @@ ...@@ -2117,9 +2090,7 @@
C034E8421D6B10A0006EE129 /* NSArray+Extend.m in Sources */, C034E8421D6B10A0006EE129 /* NSArray+Extend.m in Sources */,
C034E85B1D6B10A0006EE129 /* LFRoundProgressView.m in Sources */, C034E85B1D6B10A0006EE129 /* LFRoundProgressView.m in Sources */,
80F82E611D704E34008B470B /* KWMBrandCell.m in Sources */, 80F82E611D704E34008B470B /* KWMBrandCell.m in Sources */,
C0F586A61E276EB7001248E2 /* KWMRecommendView.m in Sources */,
C034E6F51D6AF197006EE129 /* KWMPickView.m in Sources */, C034E6F51D6AF197006EE129 /* KWMPickView.m in Sources */,
C0F586821E24F820001248E2 /* KWMTopView.m in Sources */,
C034E8651D6B10A0006EE129 /* PhotoImageView.m in Sources */, C034E8651D6B10A0006EE129 /* PhotoImageView.m in Sources */,
C034E6C81D6AED1F006EE129 /* KWMUser.m in Sources */, C034E6C81D6AED1F006EE129 /* KWMUser.m in Sources */,
C034E6F01D6AF13A006EE129 /* KWMBaseVC.m in Sources */, C034E6F01D6AF13A006EE129 /* KWMBaseVC.m in Sources */,
...@@ -2161,7 +2132,6 @@ ...@@ -2161,7 +2132,6 @@
8077F79A1D73E39000A2E2E2 /* KWMBrandCaramelCell.m in Sources */, 8077F79A1D73E39000A2E2E2 /* KWMBrandCaramelCell.m in Sources */,
9BE61D011ECD71610031D21E /* KWMCartResult.m in Sources */, 9BE61D011ECD71610031D21E /* KWMCartResult.m in Sources */,
C084F4571D6D975400A0625D /* KWMSearchBar.m in Sources */, C084F4571D6D975400A0625D /* KWMSearchBar.m in Sources */,
C0F586841E24F820001248E2 /* KWMWatchView.m in Sources */,
C0E8AE091D7D030B00C193DC /* KWMEditAddressVC.m in Sources */, C0E8AE091D7D030B00C193DC /* KWMEditAddressVC.m in Sources */,
807AF4A51DC984950000A326 /* KWMCustomerResult.m in Sources */, 807AF4A51DC984950000A326 /* KWMCustomerResult.m in Sources */,
C066650F1D7675FC00F02EF4 /* KWMAboutUsVC.m in Sources */, C066650F1D7675FC00F02EF4 /* KWMAboutUsVC.m in Sources */,
......
//
// KWMRecommendView.h
// iCemarose
//
// Created by HouWeiBin on 2017/1/12.
// Copyright © 2017年 kollway. All rights reserved.
//
@interface KWMRecommendView : UIView
@end
//
// KWMRecommendView.m
// iCemarose
//
// Created by HouWeiBin on 2017/1/12.
// Copyright © 2017年 kollway. All rights reserved.
//
#import "KWMRecommendView.h"
@interface KWMRecommendView ()
@property(nonatomic,weak) IBOutlet UIView *vView;
@end
@implementation KWMRecommendView
- (id)init{
if (self=[super init]){
[self addView];
}
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
[self addView];
}
return self;
}
-(instancetype)initWithFrame:(CGRect)frame{
if (self =[super initWithFrame:frame]) {
[self addView];
}
return self;
}
-(void)awakeFromNib{
[super awakeFromNib];
}
-(void) addView{
[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class])
owner:self
options:nil];
self.vView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
[self addSubview:self.vView];
}
@end
//
// KWMTopView.h
// iCemarose
//
// Created by 陈荣科 on 16/9/6.
// Copyright © 2016年 kollway. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "KWMPointView.h"
#import "KWMWatchView.h"
#import "Buy/Buy.h"
@class KWMTopView;
@protocol KWMTopViewDelegate <NSObject>
- (void)kwm_wacthLargeImage:(NSMutableArray *)imageArr;
- (void)kwm_onClickInformationBtn;
- (void)kwm_onClickSizeBtn;
- (void)kwm_goToBrandVC:(NSString *)brand;
@end
@interface KWMTopView : UIView<UIScrollViewDelegate,UITableViewDelegate,UITableViewDataSource,UIGestureRecognizerDelegate,KWMWatchViewDelegate>
@property (weak, nonatomic) IBOutlet UIView *vContent;
@property (weak, nonatomic) IBOutlet UIScrollView *sclDetail;
@property (weak, nonatomic) IBOutlet UIButton *btnBrand;
@property (weak, nonatomic) IBOutlet UILabel *lbGoodName;
@property (weak, nonatomic) IBOutlet UILabel *lbPrice;
@property (weak, nonatomic) IBOutlet UILabel *lbDiscount;
@property (weak, nonatomic) IBOutlet UIButton *btnInformation;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *discountLeft;//左边间距
@property (nonatomic) NSMutableArray *imageArr;
@property (weak, nonatomic) id<KWMTopViewDelegate>delegate;
@property (nonatomic) KWMPointView *vPoint;
@property (nonatomic) BUYProduct *product;
- (void)setImage:(NSString *)imageurl;
-(void)setData:(BUYProduct *)product;
- (IBAction)onClickSizeBtn:(id)sender;
- (IBAction)onClickInformationBtn:(id)sender;
- (IBAction)onClickBlandBtn:(id)sender;
@end
//
// KWMWatchView.h
// iCemarose
//
// Created by 陈荣科 on 16/9/2.
// Copyright © 2016年 kollway. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Buy/Buy.h"
#import "KWMImage.h"
@protocol KWMWatchViewDelegate <NSObject>
- (void)kwm_showLargeImage;
@end
@interface KWMWatchView : UIView
@property (weak, nonatomic) IBOutlet UIView *vContent;
@property (weak, nonatomic) IBOutlet UIImageView *ivShow;
@property (nonatomic) NSInteger tagId;
@property (nonatomic) KWMImage *imageLink;
@property (nonatomic) NSString *imageURL;
@property (weak, nonatomic) id<KWMWatchViewDelegate>delegate;
@property (nonatomic) UIView *vBackground;
- (void)setImage:(NSString *)imageurl;
- (void)setData:(KWMImage *)image;
@end
//
// KWMWatchView.m
// iCemarose
//
// Created by 陈荣科 on 16/9/2.
// Copyright © 2016年 kollway. All rights reserved.
//
#import "KWMWatchView.h"
#import "YYWebImage/YYWebImage.h"
#import "KWMStringUtil.h"
@implementation KWMWatchView
- (id)initWithFrame:(CGRect)frame{
self = [super initWithFrame:frame];
if (self) {
[self initView];
}
return self;
}
- (void)awakeFromNib{
[super awakeFromNib];
[self initView];
}
- (void)initView{
[[NSBundle mainBundle] loadNibNamed:@"KWMWatchView" owner:self options:nil];
[self addSubview:self.vContent];
self.vContent.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
[self addSubview:_vContent];
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onClickImage:)];
[self.ivShow addGestureRecognizer:tapGesture];
self.ivShow.userInteractionEnabled = YES;
NSLog(@"image Height :%lf",self.frame.size.height);
// self.ivShow.layer.borderWidth = 1;
// self.ivShow.layer.borderColor = [UIColor redColor].CGColor;
}
- (void)onClickImage:(UITapGestureRecognizer *)tapGesture{
if ([KWMStringUtil isEmpty:_imageURL]) {
return;
}
NSURL *url = [NSURL URLWithString:_imageURL];
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:url]];
// [self addShowImage:image];
if ([self.delegate respondsToSelector:@selector(kwm_showLargeImage)]) {
[self.delegate kwm_showLargeImage];
}
}
//- (void)addShowImage:(UIImage *)image{
// UIView *vBackground = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UI_SCREEN_WIDTH, UI_SCREEN_HEITHT)];
// vBackground.backgroundColor = [UIColor blackColor];
// _vBackground = vBackground;
// UITapGestureRecognizer *largeTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(leaveLargeImage)];
// [vBackground addGestureRecognizer:largeTap];
//
// vBackground.layer.borderWidth = 1;
// vBackground.layer.borderColor = [UIColor redColor].CGColor;
//
// [self.vContent addSubview:vBackground];
// UIImageView *vImage = [[UIImageView alloc] init];
// vImage.image = image;
// vImage.frame = _ivShow.frame;
// [vBackground addSubview:vImage];
//
// vImage.layer.borderWidth = 1;
// vImage.layer.borderColor = [UIColor greenColor].CGColor;
//
// [self shakeToShow:vBackground];
//}
//放大过程中出现的缓慢动画
//- (void)shakeToShow:(UIView*)aView{
// CAKeyframeAnimation* animation = [CAKeyframeAnimation animationWithKeyPath:@"transform"];
// animation.duration = 0.5;
// NSMutableArray *values = [NSMutableArray array];
// [values addObject:[NSValue valueWithCATransform3D:CATransform3DMakeScale(0.1, 0.1, 1.0)]];
// [values addObject:[NSValue valueWithCATransform3D:CATransform3DMakeScale(1.0, 1.0, 1.0)]];
// animation.values = values;
// [aView.layer addAnimation:animation forKey:nil];
//}
//- (void)leaveLargeImage{
// [_vBackground removeFromSuperview];
//}
//
- (void)setImage:(NSString *)imageurl{
if([KWMStringUtil isEmpty:imageurl]){
return;
}
_imageURL = imageurl;
NSURL *imageURL = [NSURL URLWithString:imageurl];
[self.ivShow yy_setImageWithURL:imageURL options:YYWebImageOptionProgressive];
}
- (void)setData:(KWMImage *)image{
self.imageLink = image;
if(image!=nil && image.value!=nil){
NSURL *imageURL = [NSURL URLWithString:image.getBigImage]; //string>url
// 渐进式:边下载边显示
[self.ivShow yy_setImageWithURL:imageURL options:YYWebImageOptionProgressive];
// // 渐进式加载,增加模糊效果和渐变动画
// [self.ivShow yy_setImageWithURL:imageURL options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation];
}
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11542" systemVersion="16B2555" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11524"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="KWMWatchView">
<connections>
<outlet property="ivShow" destination="GzB-SI-xEv" id="stu-Lp-rKs"/>
<outlet property="vContent" destination="TOA-vR-7co" id="Rfs-nL-xRh"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="TOA-vR-7co">
<rect key="frame" x="0.0" y="0.0" width="375" height="487"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="GzB-SI-xEv">
<rect key="frame" x="0.0" y="0.0" width="375" height="487"/>
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="GzB-SI-xEv" firstAttribute="top" secondItem="TOA-vR-7co" secondAttribute="top" id="2n8-oh-7f0"/>
<constraint firstAttribute="bottom" secondItem="GzB-SI-xEv" secondAttribute="bottom" id="Gie-wx-LM2"/>
<constraint firstItem="GzB-SI-xEv" firstAttribute="leading" secondItem="TOA-vR-7co" secondAttribute="leading" id="HZT-Mu-7hb"/>
<constraint firstAttribute="trailing" secondItem="GzB-SI-xEv" secondAttribute="trailing" id="JcO-hR-fV2"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="161.5" y="-235.5"/>
</view>
</objects>
</document>
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#import "PhotoBroswerVC.h" #import "PhotoBroswerVC.h"
#import "KWMStringUtil.h" #import "KWMStringUtil.h"
#import "KWMShopCartData.h" #import "KWMShopCartData.h"
#import "KWMRecommendView.h"
#import "KWMInformationVC.h" #import "KWMInformationVC.h"
#import "KWMBrandCaramelVC.h" #import "KWMBrandCaramelVC.h"
#import "KWMSelectSizeVC.h" #import "KWMSelectSizeVC.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment