Skip to content

Commit

Permalink
完成共更能
Browse files Browse the repository at this point in the history
  • Loading branch information
锦超 committed Sep 10, 2015
1 parent bb5065d commit f4c4dd1
Show file tree
Hide file tree
Showing 25 changed files with 1,326 additions and 66 deletions.
16 changes: 16 additions & 0 deletions YHB_Prj/YHB_Prj.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
FF357C941BA052F500DFCAC0 /* SPGLSearchCell.m in Sources */ = {isa = PBXBuildFile; fileRef = FF357C921BA052F500DFCAC0 /* SPGLSearchCell.m */; };
FF357C951BA052F500DFCAC0 /* SPGLSearchCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = FF357C931BA052F500DFCAC0 /* SPGLSearchCell.xib */; };
FF357C981BA0635100DFCAC0 /* SPGLProductMode.m in Sources */ = {isa = PBXBuildFile; fileRef = FF357C971BA0635100DFCAC0 /* SPGLProductMode.m */; };
FF357C9C1BA12D6E00DFCAC0 /* SPGLProductDetail.m in Sources */ = {isa = PBXBuildFile; fileRef = FF357C9A1BA12D6E00DFCAC0 /* SPGLProductDetail.m */; };
FF357C9D1BA12D6E00DFCAC0 /* SPGLProductDetail.xib in Resources */ = {isa = PBXBuildFile; fileRef = FF357C9B1BA12D6E00DFCAC0 /* SPGLProductDetail.xib */; };
FF357CA01BA1310300DFCAC0 /* SBPageFlowView.m in Sources */ = {isa = PBXBuildFile; fileRef = FF357C9F1BA1310300DFCAC0 /* SBPageFlowView.m */; };
FF3C20011A2EE6D30081D3C7 /* LSNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = FF3C20001A2EE6D30081D3C7 /* LSNavigationController.m */; };
FF3C20041A2EE7480081D3C7 /* FactoryModel.m in Sources */ = {isa = PBXBuildFile; fileRef = FF3C20031A2EE7480081D3C7 /* FactoryModel.m */; };
FF3C20081A2F2A440081D3C7 /* GlobObserverObject.m in Sources */ = {isa = PBXBuildFile; fileRef = FF3C20071A2F2A440081D3C7 /* GlobObserverObject.m */; };
Expand Down Expand Up @@ -530,6 +533,11 @@
FF357C931BA052F500DFCAC0 /* SPGLSearchCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SPGLSearchCell.xib; sourceTree = "<group>"; };
FF357C961BA0635100DFCAC0 /* SPGLProductMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPGLProductMode.h; sourceTree = "<group>"; };
FF357C971BA0635100DFCAC0 /* SPGLProductMode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPGLProductMode.m; sourceTree = "<group>"; };
FF357C991BA12D6E00DFCAC0 /* SPGLProductDetail.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPGLProductDetail.h; sourceTree = "<group>"; };
FF357C9A1BA12D6E00DFCAC0 /* SPGLProductDetail.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPGLProductDetail.m; sourceTree = "<group>"; };
FF357C9B1BA12D6E00DFCAC0 /* SPGLProductDetail.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SPGLProductDetail.xib; sourceTree = "<group>"; };
FF357C9E1BA1310300DFCAC0 /* SBPageFlowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SBPageFlowView.h; sourceTree = "<group>"; };
FF357C9F1BA1310300DFCAC0 /* SBPageFlowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SBPageFlowView.m; sourceTree = "<group>"; };
FF3C1FFF1A2EE6D30081D3C7 /* LSNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LSNavigationController.h; sourceTree = "<group>"; };
FF3C20001A2EE6D30081D3C7 /* LSNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LSNavigationController.m; sourceTree = "<group>"; };
FF3C20021A2EE7480081D3C7 /* FactoryModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FactoryModel.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1439,6 +1447,11 @@
FF357C931BA052F500DFCAC0 /* SPGLSearchCell.xib */,
FF357C961BA0635100DFCAC0 /* SPGLProductMode.h */,
FF357C971BA0635100DFCAC0 /* SPGLProductMode.m */,
FF357C991BA12D6E00DFCAC0 /* SPGLProductDetail.h */,
FF357C9A1BA12D6E00DFCAC0 /* SPGLProductDetail.m */,
FF357C9B1BA12D6E00DFCAC0 /* SPGLProductDetail.xib */,
FF357C9E1BA1310300DFCAC0 /* SBPageFlowView.h */,
FF357C9F1BA1310300DFCAC0 /* SBPageFlowView.m */,
);
path = shangpinguanli;
sourceTree = "<group>";
Expand Down Expand Up @@ -1858,6 +1871,7 @@
FF5CC7101B9420E000F55713 /* JCCXCell.xib in Resources */,
FF5CC7011B93EE5300F55713 /* RukuDetailViewController.xib in Resources */,
AB311F911B9BDC260070784E /* ProblemGoodsCell.xib in Resources */,
FF357C9D1BA12D6E00DFCAC0 /* SPGLProductDetail.xib in Resources */,
FFD26CF51B8C546F0003F491 /* ZCBCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -1880,6 +1894,7 @@
FF357C851BA01B8A00DFCAC0 /* SPGLManager.m in Sources */,
FF2A6C751A0F3B7B001607AC /* UIImage+GIF.m in Sources */,
5B1F7FAC1B91CEB100763059 /* DJProductCheckSrl.m in Sources */,
FF357C9C1BA12D6E00DFCAC0 /* SPGLProductDetail.m in Sources */,
FFD26CEF1B8C3F940003F491 /* ZXBJCell.m in Sources */,
FF2A6C881A0F3B8A001607AC /* UIScrollView+SVInfiniteScrolling.m in Sources */,
FFD26CCE1B86D0D50003F491 /* FirstMode.m in Sources */,
Expand Down Expand Up @@ -1987,6 +2002,7 @@
5B54BA1A1B91FCB7002098A4 /* DJProductCheckDetail.m in Sources */,
FF5C86DE1B818BE700F79EC1 /* SSWAnimator.m in Sources */,
FFF3919E1B846F58007DC652 /* NetManager.m in Sources */,
FF357CA01BA1310300DFCAC0 /* SBPageFlowView.m in Sources */,
5B54BA3F1B92F9C0002098A4 /* DJCheckCartSubmitRequest.m in Sources */,
FF2A6C7A1A0F3B7B001607AC /* UIView+WebCacheOperation.m in Sources */,
AB25793E1B8F02010015039A /* IQTitleBarButtonItem.m in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,18 @@
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "YHB_Prj/shangpinguanli/SPGLManager.m"
timestampString = "463502668.73619"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "45"
endingLineNumber = "45"
landmarkName = "-getProductListByClsApp:finishBlock:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "YHB_Prj/shangpinguanli/SPGLSearchVC.m"
timestampString = "463504788.998898"
timestampString = "463562000.125875"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "39"
endingLineNumber = "39"
startingLineNumber = "40"
endingLineNumber = "40"
landmarkName = "-viewDidLoad"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -42,45 +26,13 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "YHB_Prj/shangpinguanli/SPGLManager.m"
timestampString = "463502821.00322"
timestampString = "463560609.249543"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "44"
endingLineNumber = "44"
startingLineNumber = "45"
endingLineNumber = "45"
landmarkName = "-getProductListByClsApp:finishBlock:"
landmarkType = "5">
<Locations>
<Location
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "-[SPGLManager getProductListByClsApp:finishBlock:]"
moduleName = "YHB_Prj"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/striveliu/%E5%A4%96%E5%8C%85%E9%A1%B9%E7%9B%AE/%E8%91%A3%E9%94%8B/Dian+/DianjiaApp/YHB_Prj/YHB_Prj/shangpinguanli/SPGLManager.m"
timestampString = "463504923.475194"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "44"
endingLineNumber = "44"
offsetFromSymbolStart = "546">
</Location>
<Location
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
symbolName = "__50-[SPGLManager getProductListByClsApp:finishBlock:]_block_invoke"
moduleName = "YHB_Prj"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/striveliu/%E5%A4%96%E5%8C%85%E9%A1%B9%E7%9B%AE/%E8%91%A3%E9%94%8B/Dian+/DianjiaApp/YHB_Prj/YHB_Prj/shangpinguanli/SPGLManager.m"
timestampString = "463504923.475589"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "44"
endingLineNumber = "44"
offsetFromSymbolStart = "64">
</Location>
</Locations>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions YHB_Prj/YHB_Prj/shangpinguanli/SBPageFlowView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
//
// SBPageFlowView.h
// SBFlowView
//
// Created by JK.Peng on 13-1-30.
// Copyright (c) 2013年 njut. All rights reserved.
//

/***********************************************************************************
*
* Created by JK.Peng on 13-1-30.
*
* Any comment or suggestion welcome. Referencing this project in your AboutBox/Credits is appreciated.
*
***********************************************************************************/

/*
*It provides a novel picture browse.
*While this page is shown, the parts of content in the adjacent Pages also can be seen 。
*
*Feature: Cycle Scroll View
*
*I refereed the web:https://github.com/kejinlu/PagedFlowView
*Here,I want to say thanks to the original author
*/

#import <UIKit/UIKit.h>

typedef enum{
FlowViewOrientationHorizontal = 0,
FlowViewOrientationVertical
}FlowViewOrientation;

typedef enum {
PageDirectionPrevious = 0,
PageDirectionDown
} PageDirectionE;

@protocol SBPageFlowViewDataSource;
@protocol SBPageFlowViewDelegate;

@interface SBPageFlowView : UIView<UIScrollViewDelegate>{
FlowViewOrientation _orientation;
UIScrollView *_scrollView;
UIImageView *_defaultImageView; //default,when no data,display default image

BOOL _needsReload;

CGSize _pageSize; //size of page
NSInteger _pageCount; //total page count
NSInteger _currentPageIndex;

NSRange _visibleRange;

NSMutableArray *_reusableCells; //UnseedCell
NSMutableArray *_inUseCells; //using Cell

CGFloat _minimumPageAlpha; //default is 1.0
CGFloat _minimumPageScale; //default is 1.0

__weak id <SBPageFlowViewDataSource> _dataSource;
__weak id <SBPageFlowViewDelegate> _delegate;

}

@property (nonatomic, weak) id <SBPageFlowViewDataSource> dataSource;
@property (nonatomic, weak) id <SBPageFlowViewDelegate> delegate;
@property (nonatomic, retain) UIImageView *defaultImageView;
@property (nonatomic, assign) FlowViewOrientation orientation;
@property (nonatomic, assign, readonly) NSInteger currentPageIndex;
@property (nonatomic, assign) CGFloat minimumPageAlpha;
@property (nonatomic, assign) CGFloat minimumPageScale;

- (void)reloadData;
- (UIView *)dequeueReusableCell;
- (UIView *)cellForItemAtCurrentIndex:(NSInteger)currentIndex;

- (void)scrollToNextPage;

@end

@protocol SBPageFlowViewDelegate<NSObject>
- (void)didReloadData:(UIView *)cell cellForPageAtIndex:(NSInteger)index;

@optional
- (void)didScrollToPage:(NSInteger)pageNumber inFlowView:(SBPageFlowView *)flowView;
- (void)didSelectItemAtIndex:(NSInteger)index inFlowView:(SBPageFlowView *)flowView;

@end


@protocol SBPageFlowViewDataSource <NSObject>

// Return the number of views.
- (NSInteger)numberOfPagesInFlowView:(SBPageFlowView *)flowView;
- (CGSize)sizeForPageInFlowView:(SBPageFlowView *)flowView;

// Reusable cells
- (UIView *)flowView:(SBPageFlowView *)flowView cellForPageAtIndex:(NSInteger)index;

@end

Loading

0 comments on commit f4c4dd1

Please sign in to comment.