일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 인증
- 앱스토어
- SSH
- SSL
- 안드로이드
- albumbook
- openssl
- MSYS2
- FIDO2
- Android
- Nodejs
- SwiftUI
- css
- 앨범북
- SWIFT
- apple
- 애플
- MFA
- 앱리소스
- MYSQL
- WebAuthn
- otpkey
- kmip
- fido
- git
- appres
- Xcode
- OTP
- 2FA
- OSX
Archives
- Today
- Total
인디노트
Swift substring !!! 왜 이케 만들었는지는 모르겠지만 좀 불편하다. 본문
소스 팁/Objective C, Swift, iOS, macOS
Swift substring !!! 왜 이케 만들었는지는 모르겠지만 좀 불편하다.
인디개발자 2021. 5. 13. 15:583 번째부터 끝까지
let startIdx: String.Index = str.index(str.startIndex, offsetBy: 3)
var result = String(str[startIdx...])
처음부터 3번째 까지
let endIdx: String.Index = str.index(str.startIndex, offsetBy: 3)
var result = String(str[...endIdx])
반응형
'소스 팁 > Objective C, Swift, iOS, macOS' 카테고리의 다른 글
SwiftUI 에서 List 의 배경색 변경 (0) | 2022.10.27 |
---|---|
앱스토어 인앱결제 코드 만들때 테스트 환경 지원해야 함 (0) | 2021.05.28 |
애플 인앱결재 관련 샘플코드 - Apple Developer Document (0) | 2021.04.21 |
Swift 에서 화면(Screen) 캡춰와 녹화관련 (0) | 2021.04.17 |
Swift 의 class 안에서 다른 ViewController 를 여는 방법 (0) | 2021.04.17 |
Comments