delegate, block 에서의 Retain Cycle (ARC)
1. 간단한 Retain Cycle @interface Item : NSObject@property (nonatomic, strong) Item* value1;@property (nonatomic, strong) Item* value2;@end - (void)someMethod {Item *a1 = [[Item alloc] init];Item *a2 = [[Item alloc] init];a1.value2 = a2;} 객체 참조카운트 a1 1 a2 2 @interface Item : NSObject@property (nonatomic, strong) Item* value1;@property (nonatomic, strong) Item* value2;@end - (void)someMethod {Item *..
iOS 개발/ObjectiveC
2016. 11. 9. 01:03
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- coredata
- Swift 3
- NSManagedObjectContext
- 꺼내먹어요
- thread
- UIView
- delegate
- NSManagedObject
- applicationWillResignActive
- Swift
- workerThread
- Swift3
- AWS
- Swift 3.0
- optional
- ios
- dictionary
- docker
- 읽기 좋은 코드가 좋은 코드다
- CIImage
- CGImage
- NSManagedObjectModel
- Arc
- Swfit
- HTTP
- string
- Block
- RunLoop
- EffectiveObjectiveC
- set
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함