forked from liangdahong/BMLongPressDragCellCollectionView
-
Notifications
You must be signed in to change notification settings - Fork 6
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
idhong
committed
Jul 23, 2017
1 parent
7b0eea5
commit a2fb9a6
Showing
16 changed files
with
397 additions
and
33 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
Binary file modified
BIN
+2.07 KB
(110%)
...oj/project.xcworkspace/xcuserdata/__iangdahong.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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
18 changes: 18 additions & 0 deletions
18
...iewDemo/BMDragCellCollectionViewDemo/Demo/BMTodayHeadlinesDrag/BMTodayHeadlinesDragCell.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,18 @@ | ||
// | ||
// BMTodayHeadlinesDragCell.h | ||
// TodayHeadlinesDrag | ||
// | ||
// Created by __liangdahong on 2017/7/23. | ||
// Copyright © 2017年 http://idhong.com. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@class BMTodayHeadlinesDragModel; | ||
|
||
@interface BMTodayHeadlinesDragCell : UICollectionViewCell | ||
|
||
@property (strong, nonatomic) BMTodayHeadlinesDragModel *todayHeadlinesDragModel; | ||
|
||
|
||
@end |
36 changes: 36 additions & 0 deletions
36
...iewDemo/BMDragCellCollectionViewDemo/Demo/BMTodayHeadlinesDrag/BMTodayHeadlinesDragCell.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,36 @@ | ||
|
||
// | ||
// BMTodayHeadlinesDragCell.m | ||
// TodayHeadlinesDrag | ||
// | ||
// Created by __liangdahong on 2017/7/23. | ||
// Copyright © 2017年 http://idhong.com. All rights reserved. | ||
// | ||
|
||
#import "BMTodayHeadlinesDragCell.h" | ||
#import "BMTodayHeadlinesDragModel.h" | ||
|
||
@interface BMTodayHeadlinesDragCell () | ||
|
||
@property (weak, nonatomic) IBOutlet UIView *mybackgroundView; | ||
@property (weak, nonatomic) IBOutlet UILabel *titleLabel; | ||
|
||
@end | ||
|
||
@implementation BMTodayHeadlinesDragCell | ||
|
||
- (void)awakeFromNib { | ||
[super awakeFromNib]; | ||
self.titleLabel.adjustsFontSizeToFitWidth = YES; | ||
self.titleLabel.font = [UIFont systemFontOfSize:13]; | ||
self.mybackgroundView.layer.cornerRadius = 8.0; | ||
self.mybackgroundView.layer.borderColor = [UIColor grayColor].CGColor; | ||
self.mybackgroundView.layer.borderWidth = 1.0; | ||
} | ||
|
||
- (void)setTodayHeadlinesDragModel:(BMTodayHeadlinesDragModel *)todayHeadlinesDragModel { | ||
_todayHeadlinesDragModel = todayHeadlinesDragModel; | ||
self.titleLabel.text = todayHeadlinesDragModel.title; | ||
} | ||
|
||
@end |
Oops, something went wrong.