1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // RITLPhotosConfiguration.m
- // RITLPhotoDemo
- //
- // Created by YueWen on 2018/5/17.
- // Copyright © 2018年 YueWen. All rights reserved.
- //
- #import "RITLPhotosConfiguration.h"
- @implementation RITLPhotosConfiguration
- - (instancetype)init
- {
- if (self = [super init]) {
- self.maxCount = 9;
- self.containVideo = true;
- self.containImage = true;
- self.isRichScan = false;
- }
-
- return self;
- }
- + (instancetype)defaultConfiguration
- {
- static __weak RITLPhotosConfiguration *instance;
- RITLPhotosConfiguration *strongInstance = instance;
- @synchronized(self){
- if (strongInstance == nil) {
- strongInstance = self.new;
- instance = strongInstance;
- }
- }
- return strongInstance;
- }
- - (NSInteger)maxCount
- {
- return MAX(0,_maxCount);
- }
- - (void)dealloc
- {
- NSLog(@"[%@] is dealloc",NSStringFromClass(self.class));
- }
- @end
|