forked from liuchaogenius/DianjiaApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
锦超
committed
Sep 10, 2015
1 parent
bb5065d
commit f4c4dd1
Showing
25 changed files
with
1,326 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
YHB_Prj/YHB_Prj/Images.xcassets/spgl_detail_icon_1.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+1.53 KB
...j/YHB_Prj/Images.xcassets/spgl_detail_icon_1.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
YHB_Prj/YHB_Prj/Images.xcassets/spgl_detail_icon_2.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+1.45 KB
...j/YHB_Prj/Images.xcassets/spgl_detail_icon_2.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
YHB_Prj/YHB_Prj/Images.xcassets/spgl_detail_icon_3.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+1.32 KB
...j/YHB_Prj/Images.xcassets/spgl_detail_icon_3.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
YHB_Prj/YHB_Prj/Images.xcassets/spgl_detail_icon_4.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+1.75 KB
...j/YHB_Prj/Images.xcassets/spgl_detail_icon_4.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
YHB_Prj/YHB_Prj/Images.xcassets/spgl_detail_icon_5.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+1.72 KB
...j/YHB_Prj/Images.xcassets/spgl_detail_icon_5.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
YHB_Prj/YHB_Prj/Images.xcassets/spgl_detail_icon_6.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
Binary file added
BIN
+1.41 KB
...j/YHB_Prj/Images.xcassets/spgl_detail_icon_6.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.