일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Nodejs
- apple
- MSYS2
- 앱리소스
- css
- otpkey
- 앨범북
- SWIFT
- Xcode
- git
- MFA
- openssl
- MYSQL
- SSH
- 애플
- OSX
- SwiftUI
- 인증
- FIDO2
- 앱스토어
- WebAuthn
- 2FA
- fido
- SSL
- 안드로이드
- Android
- albumbook
- OTP
- kmip
- appres
- Today
- Total
목록소스 팁/Objective C, Swift, iOS, macOS (50)
인디노트
소스다운로드 > https://github.com/cpromise/UIAlertControllerExample이 예제에 사용된 소스 : initial commit을 다운로드 받으시면 됩니다.iOS8부터 alertView가 deprecated되었죠?우리는 기계적으로 애플의 노예이기 때문에 UIAlertController를 사용해야 합니다.절이 싫으면 중이 떠나야하는데.. 떠나면 이 추운 날에 굶어야하니까 일단 남아보도록 하죠.. UIAlertController에는 크게 3가지로 나뉩니다.동영상 한번 보고가실게요. 그럼 나눠보도록 할게요.1. No Button, No action.UIAlertController * alert= [UIAlertController alertControllerWithTitle:@..
출처: http://baccusf.tistory.com/45?category=209579 [Tomorrow is better than now] 카메라 롤과 일반 앨범 가져오기 PHFetchResult *smartAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeSmartAlbumUserLibrary options:nil]; PHFetchResult *topLevelUserCollections = [PHCollectionList fetchTopLevelUserCollectionsWithOptions:nil]; "[PHCollectionLis..
This only started happening to me today (May 2017) and no answers in this thread solved my issue. The resolution for me was from here;https://forums.developer.apple.com/thread/76803Open Terminal. Change to home directory,cd ~ Move the current transporter directory,mv .itmstransporter/ .old_itmstransporter/ Invoke the following file to let Transporter update itself."/Applications/Xcode.app/Conten..
- (void)clearImageCache{ [[NSURLCache sharedURLCache] removeAllCachedResponses]; [[AFImageDownloader defaultURLCache] removeAllCachedResponses]; [[[AFImageDownloader defaultInstance] imageCache] removeAllImages]; AFAutoPurgingImageCache *imageCache = [[AFAutoPurgingImageCache alloc] init]; [imageCache removeAllImages]; }
[UIView] 애니메이션효과 주기제2외국어/iOS2012.04.05 20:04 뷰어 댓글로 이전글다음글 Document에 있는 UIView관련 문서를 통해 UIView를 이리저리 다루어보겠습니다.xCode에서 [option키]를 누른 상태에서 UIView를 클릭하시고, 레퍼런스를 누르셔서 살펴보실수 있습니다, UIView를 살펴보시면 대강 저 저정도의 위치에 있고, 인터페이스빌드 또는 스토리보드에서 사용하는 대부분의 클래스의 부모입니다. 그럼 UIView에서 기본적으로 사용하는 애니메이션 효과를 살펴보겠습니다. 1. Alpha를 이용한, UIView 서서히 나타나거나 사라지는 효과. [UIView animateWithDuration:1.0 // 1.0초 동안 animations:^{view.alpha ..
ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = grantdavis ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = YES APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal..
아~~~ 정말... 예전에도 이것땜에 한참 헤맷는데 또 당했다. 그래서 여기 적어 놓는다. NSMutableDicrionary 를 상속받아서 사용시에 몇가지 abstract method 를 구현해주어야 한다. 그렇지 않고 사용시 "method only defined for abstract class" 라는 디버깅 메세지를 만날 것이다. 다음은 override 해야할 method 들이다. 1. NSMutableDicrionary setObject:forKey:removeObjectForKey: 2. NSDicrionary countobjectForKey:keyEnumerator 클래스 레퍼런스를 링크하였으니 각 클래스 레퍼런스의 "Overview" 에 "Subclassing notes" 를 참고하면 된다...
iOS 앱에서 push를 수신할 때, 앱의 상태는 다음의 세 가지 상태 중 하나에 있다.1. 앱이 실행 상태가 아님( push 수신으로 실행됨 )2. 앱이 foreground( 실행 중 ) 상태에서 push를 수신함3. 앱이 background 상태에서 push를 수신함각각의 상태에서 별도의 다른 동작을 위해 이 상태를 구분할 수 있어야 하고, AppDelegate 내에서 다음의 코드를 통해 구분이 가능하다. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {if (launchOptions && [launchOptions objectForKey:UIApplic..
사실 거의 모든 OS 가 클립보드를 가지고 있으면서 프로그램적으로 이 클립보드에 새로운 데이터가 들어 왔는지를 알려주는 Notification API 가 존재한다. 하지만... 하지만 OS X 의 Objective C 에 이게 없다.그럼 어떻게 하지? 타이머를 써야 한다. [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(pollPasteboard:) userInfo:nil repeats:YES]; - (void)pollPasteboard:(id)sender{// 여기에서 클립보드에 내가 원하는 타입의 데이터가 존재하는지 체크 한다. }
iOS 기기에서 카메라 기능을 구현할 때 주의를 해야겠다.애플의 Crash Reports 를 기준으로 많이 나는 오류를 추적해 보니... 예를 들어 [device setTorchMode:AVCaptureTorchModeOff]; 이렇게 카메라 장치의 Torch Mode 를 설정할 때 해당 device 가 과연 Torch Mode 를 지원하는지 확인해야만 한다.그렇지 않으면 해당 device 에 Torch Mode 를 셋팅하는 순간 코드는 죽는다. 다음과 같은 함수들도 마찬가지 이다. [device setFocusMode:focusMode];[device setFocusPointOfInterest:point]; 그래서... 코드를 다음과 같이 짜야만 한다. if ([device isFocusPointOfI..