일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- windows
- Mobile
- cagr48com
- Objective-C
- java
- 오브젝티브C
- 링크
- 아이폰
- 애플
- ObjectiveC
- VISTA
- 형식
- 볼링
- 설치
- 아이맥
- 윈도구7
- Number
- WSDL
- c#
- 퇴사
- screen
- 윈도우즈7
- mac
- iPhone
- WebService
- 맥
- windows7
- install
- 7932
- 윈도구
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 |