| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
                            Tags
                            
                        
                          
                          - 형식
- 윈도구
- 윈도구7
- 아이폰
- WSDL
- WebService
- mac
- iPhone
- 링크
- 윈도우즈7
- 아이맥
- 7932
- windows
- 맥
- cagr48com
- java
- install
- Objective-C
- Number
- 오브젝티브C
- Mobile
- ObjectiveC
- windows7
- 퇴사
- screen
- c#
- 설치
- VISTA
- 볼링
- 애플
                            Archives
                            
                        
                          
                          - Today
- Total
A colossal Dreamer: GR鐵塔-天生我材
ObjC Action Delegation(Handling) Cases 본문
Old style
@protocol XXXDelegate
// YES => 본체의 내부 로직 실행
// NO => delegator 쪽에서 처리하거나, 버리기
- (BOOL)shouldAction....
@end
Mid age style
ref: UIAlertController, UIAlertAction
Cur style
typedef NS_ENUM(NSInteger, Policy) {
Cancel,
Allow
}
@protocol
// Action을 살펴보고,
// decisionHander 를 호출하는 방식.
// 본체에서 처리하려면, Allow
// delegator에서 처리하거나 버리려면, Cancel
- (void)decidePolicyForAction:(Action *)action decisionHandler:(void (^)(Policy))decisionHandler
@end
'Development > 아이폰' 카테고리의 다른 글
| 아이폰 단말 장치 ID 구분 정보 (0) | 2018.07.12 | 
|---|---|
| UIViewController Lifecycle (0) | 2018.04.18 | 
| 애플워치 1세대 -> 3세대 (0) | 2018.02.06 | 
| iOS 10 Keychain Access with entitlement (0) | 2016.09.28 | 
| [KeyChain] OSStatus -34018 (errSecMissingEntitlement) Issue!! (0) | 2015.08.28 |