GLD_WeiboListController.m
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// 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