분류 전체보기(354)
-
[PHP] hasPrefix 구현하기
## $strUrl = "https://www.test.com"; if(substr($strUrl, 0, 6) === 'https:'){ echo "hasPrefix https"; }
2021.04.13 -
info.plist
## 카메라 권한 NSCameraUsageDescription 카메라를 사용하는 이유 ## 위치 권한 NSLocationAlwaysUsageDescription 위치 정보 사용 이유 NSLocationWhenInUseUsageDescription 위치 정보 사용 이유 ## 사진앨범 권한 NSPhotoLibraryAddUsageDescription 사진 앨범을 사용 이유 NSPhotoLibraryUsageDescription 사진 앨범을 사용 이유 ## Font 폰트 UIAppFonts FontFile1.ttf FontFile2.ttf FontFile3.ttf ## 스키마 허용 목록 LSApplicationQueriesSchemes app-scheme1 app-scheme2 ## 네트워크 권한 NSAppT..
2021.04.08 -
NSURL
# NSURL 생성 NSString *strUrl = @"https://johnny:p4ssw0rd@www.example.com:443/script.ext;param=value?query=value#ref"; NSURL *url = [NSURL URLWithString:strUrl]; var strUrl = "http://someurl.com/something" var url = URL(string: strUrl) var domain = url?.host # NSURL 객체 구조 https://johnny:p4ssw0rd@www.example.com:443/script.ext;param=value?query=value#ref Component Value scheme https user johnny pas..
2021.04.08 -
경로(Path), 파일명, 확장자 조작 함수
# import, 변수초기화 import os org_path = "/path1/path2/file.jpg" # 파일 추출 file = os.path.basename(org_path) print("파일명 추출", file) # 파일명 추출 file.jpg # 경로 추출 path = os.path.dirname(org_path) print("경로 추출", path) # 경로 추출 /path1/path2 # 경로와 파일명 추출 path, file = os.path.split(org_path) #- 경로와 파일명을 분리 print("경로와 파일명 추출", path, file) # 경로와 파일명 추출 /path1/path2 file.jpg # 파일명과 확장자 추출 filename, fileext = os.pat..
2021.03.12 -
iPhone 생체인증(Biometrics) 지원여부 확인
## 생체인증(Biometrics) 지원여부 - (BOOL) isSupportBiometric { if (![LAContext class]) { return NO; } LAContext *laContext = [[LAContext alloc] init]; NSError *error = nil; if (![laContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { return NO; } return YES; } ## 지문인증(TouchID) 지원여부 - (BOOL) isSupportTouchID { if (![LAContext class]){ return NO; } LAContext *laContex..
2021.03.12 -
[Application] The app delegate must implement the window property if it wants to use a main storyboard file.
Xcode12.2 에서 Run 실행시 검은색 화면만 나오는 문제 발생 콘솔로그에 아래 메시지가 노출 [Application] The app delegate must implement the window property if it wants to use a main storyboard file. ▦ 해결 방법 AppDelegate.h @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; // 추가 @end
2021.03.09