Home ObjC 中 selector, method, message 的区别
Post
Cancel

ObjC 中 selector, method, message 的区别

有点晚了, 先占个坑待填.

selector, 方法名

method, selector 及 method 的实现.

message, selector 及 所需的参数.

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
#import "InteractiveSectionController.h"
#import "InteractiveCell.h"

@implementation InteractiveSectionController

#pragma mark - IGListSectionType

- (NSInteger)numberOfItems {
    return 1;
}

- (CGSize)sizeForItemAtIndex:(NSInteger)index {
    return CGSizeMake(self.collectionContext.containerSize.width, 41);
}

- (UICollectionViewCell *)cellForItemAtIndex:(NSInteger)index {
    InteractiveCell *cell = [self.collectionContext dequeueReusableCellOfClass:[InteractiveCell class] forSectionController:self atIndex:index];
    return cell;
}

- (void)didUpdateToObject:(id)object {
    
}

- (void)didSelectItemAtIndex:(NSInteger)index {
    
}

@end
-- Missing configuration options! --