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