Not necessary to strong-holding a shared instance
Not necessary to strong-holding a shared instance
This commit is contained in:
parent
820b5a685e
commit
767695f6e1
|
|
@ -65,7 +65,7 @@
|
|||
@property (weak , nonatomic) FSCalendarHeader *header;
|
||||
@property (weak , nonatomic) FSCalendarHeaderTouchDeliver *deliver;
|
||||
|
||||
@property (strong, nonatomic) NSCalendar *calendar;
|
||||
@property (weak , nonatomic) NSCalendar *calendar;
|
||||
|
||||
@property (assign, nonatomic) BOOL ibEditing;
|
||||
@property (assign, nonatomic) BOOL needsAdjustingMonthPosition;
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@
|
|||
|
||||
@interface FSCalendarHeader ()<UICollectionViewDataSource,UICollectionViewDelegate>
|
||||
|
||||
@property (strong, nonatomic) NSDateFormatter *dateFormatter;
|
||||
|
||||
@property (weak, nonatomic) NSDateFormatter *dateFormatter;
|
||||
@property (weak, nonatomic) UICollectionViewFlowLayout *collectionViewFlowLayout;
|
||||
|
||||
@property (assign, nonatomic) BOOL needsAdjustingMonthPosition;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
@property (weak, nonatomic) UIView *contentView;
|
||||
@property (weak, nonatomic) UIView *separator;
|
||||
|
||||
@property (strong, nonatomic) NSDateFormatter *dateFormatter;
|
||||
@property (weak, nonatomic) NSDateFormatter *dateFormatter;
|
||||
|
||||
@property (assign, nonatomic) BOOL needsReloadingAppearance;
|
||||
@property (assign, nonatomic) BOOL needsAdjustingFrames;
|
||||
|
|
@ -35,9 +35,9 @@
|
|||
self = [super initWithFrame:frame];
|
||||
if (self) {
|
||||
|
||||
self.dateFormatter = [NSDateFormatter fs_sharedDateFormatter];
|
||||
self.needsReloadingAppearance = YES;
|
||||
self.needsAdjustingFrames = YES;
|
||||
_dateFormatter = [NSDateFormatter fs_sharedDateFormatter];
|
||||
_needsReloadingAppearance = YES;
|
||||
_needsAdjustingFrames = YES;
|
||||
|
||||
UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
view.backgroundColor = [UIColor clearColor];
|
||||
|
|
|
|||
Loading…
Reference in New Issue