본문 바로가기

전체 글

(35)
[Swift] 안전하게 배열 접근하기 참고한 StackOverflow https://stackoverflow.com/questions/25329186/safe-bounds-checked-array-lookup-in-swift-through-optional-bindings/30593673#30593673 Safe (bounds-checked) array lookup in Swift, through optional bindings? If I have an array in Swift, and try to access an index that is out of bounds, there is an unsurprising runtime error: var str = ["Apple", "Banana", "Coconut"] str[0] // "Apple"..
[Swift] Provider Pattern + Moya를 곁들여 네트워크 구조 더 잘 짜기 -1- Provider Model Design Pattern and Specification, Part 1 Provider Model Design Pattern and Specification, Part 1 Table of contents Provider Model Design Pattern and Specification, Part 1 Article 06/30/2006 17 minutes to read In this article --> Rob Howard Microsoft Corporation March 2, 2004 Summary: Rob Howard returns to Nothin' But ASP.NET to look at how you can use docs.microsoft.com 위 글을 함께 참고..
[Swift] 로컬라이징(localizing)을 이용한 string 관리 참고 자료 : https://zeddios.tistory.com/368 iOS ) 왕초보를 위한 로컬라이징 / Localizing Your App 안녕하세요 :) Zedd입니다. 오늘은 로컬라이징!!!!! 저는 영어를 베이스로 만들고 있는데..물론 다 이해가지만 각 나라언어로 보여지면 어떨까 싶어서 이번기회에 로컬라이징을 공부해보려고 합니 zeddios.tistory.com 부제 : 하드코딩 해결하기 반복적으로 사용하는 string값은 어느 앱이나 존재합니다. 예를 들어 다양한 팝업, 얼럿에 '확인'같은 버튼의 문구가 사용되는 것 처럼 말이죠. 그런데 어느 날 '확인'이라는 문구를 글로벌 앱으로 변화시킨다는 정책으로 'ok'로 바꾼다고 가정해봅시다. 위 상황이면 모든 '확인' string 데이터를 'ok..