iOS(30)
-
[Swift] UILabel에서 attributedText를 활용한 들여쓰기와 내어쓰기
안내사항 문구를 만들다가 글자 들여쓰기 어떻게 하지..? dot 라벨 만들고,, 라벨 만들어야하나...? 이런 생각을 했었다. 하지만 attributedText를 통해서 만들 수 있지않을까? 하고 구글링하고 정리 겸 블로그 글을 쓰게 되었다. (의식의 흐름) 인스펙터에서도 설정이 가능하지만 요상하게도 적용이 안되서 코드로 설정했다. 들여쓰기, 내어쓰기는 NSMutableParagraphStyle()를 통해 설정할 수 있다. zeroLabel.text = testString let firstParagraphStyle = NSMutableParagraphStyle() firstParagraphStyle.headIndent = 10 firstLabel.attributedText = NSAttributedStr..
2021.04.08 -
[Swift] Check Appstore receipts validation
영수증 유효성 체크 간혹가다 영수증 유효성 체크를 해야하는 경우가 있다. 유효성 체크는 로컬과 서버를 통해서 체크하는 방법이 있다. 이 글은 서버를 통해 유효성 체크를 하는 방법이다. func checkReceiptValidation(with receipt: String, isProduction: Bool = true) { var urlString: String = "" if isProduction { urlString = "https://buy.itunes.apple.com/verifyReceipt" } else { urlString = "https://sandbox.itunes.apple.com/verifyReceipt" } let url = URL(string: urlString)! let dic:..
2021.02.19 -
[WWDC Video Study] What’s new with in-app purchase - Refund Notification
Link developer.apple.com/videos/play/wwdc2020/10661/?time=551 What’s new with in-app purchase - WWDC 2020 - Videos - Apple Developer Create a great in-app purchase experience for your iPhone, iPad, Mac, and Apple Watch apps. Discover how to handle refunds, integrate new... developer.apple.com 45분정도 되는 영상이다. 여기서는 In-app purchase 에서의 업데이트 사항들을 알려주는데 크게 Server의 업데이트와 StoreKit의 업데이트가 있다. 번역 & 이해 하려고..
2021.02.04 -
Mobile Deep Link - 모바일 딥링크
용어가 헷갈려서 정리하는 글.. http 혹은 https로 시작하는 인터넷 주소는 모두 특정 웹 페이지로 이동을 하는데, DeepLink는 모바일 앱에서 위와 유사한 기능을 한다. Mobile Deep Link URI Scheme 방식 - 앱에 URI Scheme을 등록하여 딥링크 사용 App Link: Android 제공 - 도메인 주소를 이용한 딥링크 사용 Universal Link: iOS 제공 - 도메인 주소를 이용한 딥링크 사용 URI Scheme 방식 가장 일반적으로 사용되는 딥링크 방식 앱에 scheme값을 등록하는 형태로 앱을 구분 scheme scheme → 앱을 특정 Path → 앱 내 페이지를 특정 만약 트위터 앱을 오픈하고자 한다면 twitter:// 라는 스킴 값을 이용하면 된다...
2021.01.29 -
[Apple Video Study] Build localization-friendly layouts using Xcode
Link Build localization-friendly layouts using Xcode - WWDC 2020 - Videos - Apple Developer 이번거는 한글로.. 번역할 생각을 안함^^.. 나중에 수정하기~_~ Design best practices Avoid fixed widths or frames Avoid fixed spacing Allow multiple lines of wrapped text Do not place too many controls in a fixed space Useful tools Document preview lets you preview UI immediately Scheme options to test in specific language, inclu..
2021.01.20 -
[WWDC Video Study] Widgets Code-along
Link Widgets Code-along, part 1: The adventure begins - WWDC 2020 - Videos - Apple Developer Widgets Code-along, part 2: Alternate timelines - WWDC 2020 - Videos - Apple Developer Widgets Code-along, part 3: Advancing timelines - WWDC 2020 - Videos - Apple Developer 실습 내용 있는 깃헙! mini0212/SwiftUIStudy Part 1 Widget이란? SwiftUI로 작성되는 것으로 iOS, iPadOS, MacOS에서 네이티브 뷰를 생성하는 것과 동일한 선언 코드이며, 시간이 지남에 따라 ..
2021.01.03