-
Notifications
You must be signed in to change notification settings - Fork 482
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
1 parent
2d8feb3
commit c3df914
Showing
24 changed files
with
367 additions
and
79 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// SJLightweightTopItem.h | ||
// SJVideoPlayerProject | ||
// | ||
// Created by BlueDancer on 2018/3/22. | ||
// Copyright © 2018年 SanJiang. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
extern NSString *const kLightweightTopItemImageNameKeyPath; | ||
|
||
@interface SJLightweightTopItem : NSObject | ||
|
||
- (instancetype)initWithFlag:(NSInteger)flag imageName:(NSString *)imageName; | ||
|
||
/** | ||
Player will observe the change in this property. | ||
Will do the appropriate update. | ||
If you change the image of item, the player will also be updated. | ||
readwrite. | ||
*/ | ||
@property (nonatomic, copy) NSString *imageName; | ||
|
||
@property (nonatomic, assign, readonly) NSInteger flag; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// SJLightweightTopItem.m | ||
// SJVideoPlayerProject | ||
// | ||
// Created by BlueDancer on 2018/3/22. | ||
// Copyright © 2018年 SanJiang. All rights reserved. | ||
// | ||
|
||
#import "SJLightweightTopItem.h" | ||
|
||
NSString *const kLightweightTopItemImageNameKeyPath = @"imageName"; | ||
|
||
@implementation SJLightweightTopItem | ||
|
||
- (instancetype)initWithFlag:(NSInteger)flag imageName:(NSString *)imageName { | ||
self = [super init]; | ||
if ( !self ) return nil; | ||
_flag = flag; | ||
_imageName = imageName; | ||
return self; | ||
} | ||
@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
Oops, something went wrong.