본문 바로가기 메뉴 바로가기

GonsiOS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

GonsiOS

검색하기 폼
  • 분류 전체보기 (108)
    • iOS Swift + UIKit (45)
    • iOS Library (21)
    • iOS etc. (20)
    • iOS SwiftUI (19)
    • macOS (3)
  • 방명록

replacingOccurrences (1)
728x90
반응형
iOS Swift 문법 특정문자 변경,수정,변환,치환 (String change)

Swift 문자열에 특정 문자를 바꾸는 방법입니다. let str = "Gons!" let str2 = str.replacingOccurrences(of: "!", with: "♥︎") print(str2) 느낌표 ! 를 하트 ♥︎ 로 변경하는 코드입니다.

iOS Swift + UIKit 2021. 1. 13. 10:01
728x90
반응형
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • permission
  • objective-c
  • localizing
  • TabView
  • 인디케이터
  • 엑스코드
  • 심사
  • macos
  • 로컬라이징
  • swiftUI
  • picker
  • ios
  • 리젝
  • connect
  • 프로그레스
  • 테이블뷰
  • 아이오에스
  • 다국어
  • Authorization
  • 현지화
  • TabBar
  • AppStore
  • localizable
  • 스위프트
  • Language
  • Apple
  • SWIFT
  • Xcode
  • indicator
  • Reject
more
«   2026/04   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바