Commit b165426b998576d37ee10ffc6ff3ecf0ed80bcc4

Authored by liushiyu
1 parent 48b41c45

0.3.1

CNLiveCommuntyModule.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveCommuntyModule'
11   - s.version = '0.3.0'
  11 + s.version = '0.3.1'
12 12 s.summary = 'A short description of CNLiveCommuntyModule.'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveCommuntyModule/Classes/ViewController/CNLiveCommuntServiceViewController.m
... ... @@ -42,24 +42,24 @@
42 42 }
43 43 return self;
44 44 }
45   -- (void)dsDealloc
46   -{
47   - @try {
48   - if (self.childViewControllers.count > 0) {
49   - UIViewController *vc = self.childViewControllers[0];
50   - if (([self searchProperties:[vc class] string:@"collectionView"] || [self searchProperties:[vc.superclass class] string:@"collectionView"])&&[vc valueForKey:@"collectionView"]&&[[vc valueForKey:@"collectionView"] isKindOfClass:[UICollectionView class]]) {
51   - UICollectionView *collectionView = (UICollectionView *)[vc valueForKey:@"collectionView"];
52   - if ([collectionView valueForKey:@"mj_header"]) {
53   - id header = [collectionView valueForKey:@"mj_header"];
54   - [header removeObserver:self forKeyPath:@"state"];
55   - }
56   - }
57   - }
58   - } @catch (NSException *exception) {
59   - NSLog(@"这是异常了");
60   - }
61   -
62   -}
  45 +//- (void)dsDealloc
  46 +//{
  47 +// @try {
  48 +// if (self.childViewControllers.count > 0) {
  49 +// UIViewController *vc = self.childViewControllers[0];
  50 +// if (([self searchProperties:[vc class] string:@"collectionView"] || [self searchProperties:[vc.superclass class] string:@"collectionView"])&&[vc valueForKey:@"collectionView"]&&[[vc valueForKey:@"collectionView"] isKindOfClass:[UICollectionView class]]) {
  51 +// UICollectionView *collectionView = (UICollectionView *)[vc valueForKey:@"collectionView"];
  52 +// if ([collectionView valueForKey:@"mj_header"]) {
  53 +// id header = [collectionView valueForKey:@"mj_header"];
  54 +// [header removeObserver:self forKeyPath:@"state"];
  55 +// }
  56 +// }
  57 +// }
  58 +// } @catch (NSException *exception) {
  59 +// NSLog(@"这是异常了");
  60 +// }
  61 +//
  62 +//}
63 63 - (void)viewDidLoad {
64 64 [super viewDidLoad];
65 65 // Do any additional setup after loading the view.
... ... @@ -82,14 +82,16 @@
82 82 }];
83 83 }
84 84  
  85 +
85 86 UIViewController *vc = self.childViewControllers[0];
86 87 if ([self searchProperties:[vc class] string:@"collectionView"]&&[vc valueForKey:@"collectionView"] && [[vc valueForKey:@"collectionView"] isKindOfClass:[UICollectionView class]]){
87 88 UICollectionView *collectionView = (UICollectionView *)[vc valueForKey:@"collectionView"];
88   - if (!self.isLoading) [collectionView.mj_header beginRefreshing];
89   - if ([collectionView valueForKey:@"mj_header"]) {
90   - id header = [collectionView valueForKey:@"mj_header"];
91   - [header addObserver:self forKeyPath:@"state" options:NSKeyValueObservingOptionNew context:nil];
92   - }
  89 +// if (!self.isLoading)
  90 + [collectionView.mj_header beginRefreshing];
  91 +// if ([collectionView valueForKey:@"mj_header"]) {
  92 +// id header = [collectionView valueForKey:@"mj_header"];
  93 +// [header addObserver:self forKeyPath:@"state" options:NSKeyValueObservingOptionNew context:nil];
  94 +// }
93 95 }
94 96  
95 97 if (self.isRootVC) [self initNav];
... ...