Computer Hippocampus
  • 홈
  • 태그
  • 방명록
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • 분류 전체보기 (176)
      • Daily Records (0)
      • Coding Test 관련(with Kotlin) (0)
      • Android Dev (87)
        • NowInAndroid (7)
        • NaimanProject (0)
        • Compose (21)
        • Navigation (4)
        • Google Billing API (4)
        • Test Firebase Chatting App (12)
        • Login API 정리 (0)
        • Error logs (0)
      • 코틀린(Kotlin, Java) (14)
      • Swift (12)
        • codingTest (0)
      • Spring Boot (1)
      • Scala (3)
      • Js (0)
      • Programming Theory (13)
        • Functional Programming (2)
        • Design Pattern (0)
        • Generics (3)
        • 비동기 패러다임(Asynchronous Para.. (0)
        • 코루틴(Coruotine) (8)
        • Rxjava (0)
      • 파이어베이스(Firebase) (0)
      • 프로그래밍 팁 (1)
      • SystemVerilog (2)
      • Adobe (4)
        • 포토 일러스트레이터 (4)
        • Premiere pro (0)
      • Github 팁 (3)
      • RiscV (2)
        • Wake (1)
      • Linux (2)
      • CSS (4)
      • 회사 관련 (0)
  • 홈
  • 태그
  • 방명록

Swift- Extension (String)

보호되어 있는 글입니다.

2021. 11. 16. 01:59
Swift

Swift, trial, for with index

1. for (index, m) in moves.enumerated() { for i in 0...m { } } 다양한 for 문 예제 let contacts = ["adam" : 1234, "james" : 1235, "amy" : 09123] let word = "supercalifragile" let halfOpenRange = 1..

2021. 11. 16. 01:45
Swift

Swift, trial, Array method, joined

1. [string] 은 joined()를 지원하며 위의sss와 같이 string들을 합쳐줌 [int]은 joined() 안됨

2021. 11. 16. 00:45
Swift

Swift, trial, String : 자르기/replacingOccureences/using startIndex / Index / Substring

현재 시점에는 substring은 deprecated되었다는것 같고.. 아래와 같이 사용 replacingOccureences 사용 출처 : https://tngusmiso.tistory.com/46 문자 포함 특정 문자의 인덱스를 알고 싶다면 firstIndex(of:), lastIndex(of:)를 사용하면 원하는 문자가 있는 인덱스를 구할 수 있다. 반환형은 String.Index? (옵셔널)이므로 Unwrapping 후 사용하면 된다. let str = "Hello World" if let index = str.firstIndex(of: "o") { print(index) // 4 } if let index = str.lastIndex(of: "o") { print(index) // 7 } 특정 ..

2021. 11. 14. 21:49
Swift

Xcode - Swift - github repository push 방법

해당 방법은 기존에 만들어놓은 코드를 github에 push하는 것이며, 새로운 프로젝트를 github에 올리려고 한다면, 최초 생성시 깃헙과 곧바로 연동하는 옵션을 체크하면 됩니다. 1. Github에서 repository를 하나 생성한다 2. terminal에서 해당 패키지 경로로 이동한다 3. 커맨드창에 다음과 같이 차례로 입력함 1> git init 2> git add * 3> git remote add origin https://github.com/당신의 아이디/당신이 1과정에서 생성한 레포지토리 이름.git 4> git commit -m "my initial" 4. xcode로 이동하여 push 버튼을 눌러줌(token으로 인증한경우) 혹은 terminal에서 git push해줌

2021. 11. 13. 19:27

Swift 문법 간단 정리

보호되어 있는 글입니다.

2021. 11. 12. 16:50
  • «
  • 1
  • 2
  • »

공지사항

전체 카테고리

  • 분류 전체보기 (176)
    • Daily Records (0)
    • Coding Test 관련(with Kotlin) (0)
    • Android Dev (87)
      • NowInAndroid (7)
      • NaimanProject (0)
      • Compose (21)
      • Navigation (4)
      • Google Billing API (4)
      • Test Firebase Chatting App (12)
      • Login API 정리 (0)
      • Error logs (0)
    • 코틀린(Kotlin, Java) (14)
    • Swift (12)
      • codingTest (0)
    • Spring Boot (1)
    • Scala (3)
    • Js (0)
    • Programming Theory (13)
      • Functional Programming (2)
      • Design Pattern (0)
      • Generics (3)
      • 비동기 패러다임(Asynchronous Para.. (0)
      • 코루틴(Coruotine) (8)
      • Rxjava (0)
    • 파이어베이스(Firebase) (0)
    • 프로그래밍 팁 (1)
    • SystemVerilog (2)
    • Adobe (4)
      • 포토 일러스트레이터 (4)
      • Premiere pro (0)
    • Github 팁 (3)
    • RiscV (2)
      • Wake (1)
    • Linux (2)
    • CSS (4)
    • 회사 관련 (0)
애드센스 광고 영역
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

태그

MORE

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © Computer Hippocampus All rights reserved. TistoryWhaleSkin3.4

티스토리툴바