GLD_WeiboListController.m 1.11 KB
//
//  GLD_WeiboListController.m
//  YX_BaseProject
//
//  Created by yiyangkeji on 2018/4/10.
//  Copyright © 2018年 com.yxvzb. All rights reserved.
//

#import "GLD_WeiboListController.h"
#import "GLD_UserModel.h"

@interface GLD_WeiboListController ()

@end

@implementation GLD_WeiboListController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    NSDictionary *dict = @{@"name":@"1",@"age":@"2"};
    NSMutableArray *arr = [NSMutableArray array];
    for (int i = 0; i < 5; i++) {
        [arr addObject:dict];
    }
   NSArray *arr1 = [[arr.rac_sequence map:^id(id value) {
        return [GLD_UserModel yy_modelWithDictionary:value];
    }] array];
    // Do any additional setup after loading the view.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    if (self.delegateSubject) {
        [self.delegateSubject sendNext:@"dddd"];
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc{
    NSLog(@"%@-->死了\n",self.description);
}

@end