objc 에서 콜백함수에 대한 이벤트리스너를 만드려면 1. block(^) 2. selector 3. noti 4. delegate 가 있다고 한다. 현재 상황에서 나에게 필요한건 block 이었기 때문에 혹시 필요하신 분들을 위해 샘플코드를 제공합니다. @implementation -(void)doSomething:(void (^)(BOOL, int))completionBlock { NSLog(@"Do Something first"); completionBlock(YES, 1); completionBlock(NO, 2); NSLog(@"Then may be something else"); } - (void)viewDidLoad { [super viewDidLoad]; // Do any additiona..
자주 까먹는 이슈 ios10 부터 지원하려고 하면 겪는 문제. ios13부터는 window 프로퍼티가 기본 내장되있는듯 하다 [Application] The app delegate must implement the window property if it wants to use a main storyboard file.ios10을 지원하려면 AppDelegate.h 에 추가해주면 된다 같은 내용의 자료가 많아서 포스팅하지 않으려 했으나 은근히 까먹기 때문에 작성함. #import @interface AppDelegate : UIResponder @property (nonatomic, strong) UIWindow * window; @end
- Total
- Today
- Yesterday
- 퍼미션체크
- tempfile
- Locale.getDefault().getLanguage()
- Golang
- nsurl to nsstring convert
- NSUserDefaults 예제
- iTunes Store에 연결할 수 없음
- ioutil
- dialog
- Error Domain=SKErrorDomain Code=0
- nsurl 에서 nsstring 변환
- abs
- permissionCheck
- java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line
- DeviceModel
- convert nsurl to nsstring
- countryName
- LanguageCode
- tempdir
- countryCode
- abs 함수
- setCancelable vs setCanceledOnTouchOutside
- 절대값함수
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |