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
- Block
- HTTP
- UIView
- thread
- 꺼내먹어요
- CIImage
- string
- Swfit
- applicationWillResignActive
- Arc
- workerThread
- delegate
- RunLoop
- NSManagedObjectModel
- 읽기 좋은 코드가 좋은 코드다
- CGImage
- optional
- Swift3
- NSManagedObjectContext
- Swift 3.0
- Swift
- coredata
- set
- docker
- AWS
- ios
- Swift 3
- EffectiveObjectiveC
- dictionary
- NSManagedObject
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함