-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the ability to change 'transformType' from option.
- Loading branch information
taglia
committed
Feb 16, 2016
1 parent
83e334a
commit 2eaa186
Showing
10 changed files
with
171 additions
and
296 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
typedef NS_ENUM(int, PropertyRelated){ | ||
STICKY, | ||
SHADOW, | ||
TRANSFORM, | ||
RADIUS | ||
}; | ||
|
||
|
31 changes: 31 additions & 0 deletions
31
ElasticTransistionExample/Cell/CellModel/SegmentCellModel.h
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,31 @@ | ||
// | ||
// SegmentCellModel.h | ||
// ElasticTransitionExample | ||
// | ||
// Created by Tigielle on 16/02/16. | ||
// Copyright © 2016 Matteo Tagliafico. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "CellDimensionAndTypeDelegate.h" | ||
|
||
@protocol CellSegmentChange; | ||
|
||
@interface SegmentCellModel : NSObject <CellDimensionAndTypeDelegate> | ||
|
||
@property (nonatomic) NSArray *values; | ||
@property (nonatomic) NSInteger index; | ||
@property (nonatomic, weak) id<CellSegmentChange> delegate; | ||
|
||
- (void)setSelcetedTransformIndex:(NSInteger)index; | ||
|
||
@end | ||
|
||
|
||
@protocol CellSegmentChange <NSObject> | ||
|
||
@optional | ||
|
||
-(void)didSelcetedTransformIndex:(NSInteger)index AndPropertyRelated:(PropertyRelated)property; | ||
|
||
@end |
29 changes: 29 additions & 0 deletions
29
ElasticTransistionExample/Cell/CellModel/SegmentCellModel.m
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,29 @@ | ||
// | ||
// SegmentCellModel.m | ||
// ElasticTransitionExample | ||
// | ||
// Created by Tigielle on 16/02/16. | ||
// Copyright © 2016 Matteo Tagliafico. All rights reserved. | ||
// | ||
|
||
#import "SegmentCellModel.h" | ||
|
||
@implementation SegmentCellModel | ||
|
||
@synthesize type, rowHeigth; | ||
@synthesize name; | ||
|
||
|
||
- (void)setSelcetedTransformIndex:(NSInteger)index{ | ||
|
||
self.index = index; | ||
|
||
id<CellSegmentChange> strongDelegate = self.delegate; | ||
|
||
if([strongDelegate respondsToSelector:@selector(didSelcetedTransformIndex:AndPropertyRelated:)]){ | ||
|
||
[strongDelegate didSelcetedTransformIndex:index AndPropertyRelated:TRANSFORM]; | ||
} | ||
} | ||
|
||
@end |
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
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
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
Binary file modified
BIN
+2.09 KB
(100%)
...deproj/project.xcworkspace/xcuserdata/tigielle.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Oops, something went wrong.