Swift 개발 팁

2021. 7. 5. 06:21아이폰 개발

 

https://medium.com/@imsree/custom-circular-progress-bar-in-ios-using-swift-4-b1a9f7c55da

 

Custom Circular Progress Bar in iOS using Swift 4

Before starting, let me show you our desired output first!

medium.com

https://www.raywenderlich.com/5436806-modern-collection-views-with-compositional-layouts

 

Modern Collection Views with Compositional Layouts

In this tutorial, you’ll learn how to build beautiful, modern UICollectionView layouts using iOS 13’s new declarative UICollectionViewCompositionalLayout API.

www.raywenderlich.com

https://ios-development.tistory.com/64

 

[iOS - swift] 5. 서버 - Indicator View (버퍼링 표현)

*서버의 REQ, RES는 시간이 오래걸리는 작업이므로 사용자에게 버퍼링과 같은 표현을 해줘야 기다리기 용이 Activity Indicator View 추가 1) 생성, @IBOutlet설정 2) 맨 앞으로 뷰 배치  - 가려지는 것을 방

ios-development.tistory.com

https://devsc.tistory.com/97

 

iOS)문자열의 처음, 마지막 지정된 개수만큼 지우기

문자열의 처음, 마지막 지정된 개수만큼 지우기 설명 이번 포스팅은 문자열의 앞뒤 문자를 지우는 메소드 입니다. 문자열의 길이 만큼만 자를수 있기때문에 고정된 길이의 문자열에서만 사용해

devsc.tistory.com

https://jiyeonlab.tistory.com/14

 

[iOS] UITextField의 Placeholder 텍스트 색상 바꾸기

항상 UITextField의 border가 있는 상태에서만 사용해보다가, 어두운 배경에서 border style을 None으로 사용하려고 보니! placeholder가 기본적으로 옅은 회색이라.. 아래 캡쳐한 것처럼.. 보이지가 않는다!!

jiyeonlab.tistory.com

https://newbedev.com/swift-dismiss-multiple-view-controllers-swift-code-example

 

Programming tutorials | Newbedev

Checkout new tutorials and guides for programming languages Javascript, Python, Java, Golang, C++, PHP

newbedev.com

https://fomaios.tistory.com/entry/%EC%9D%B4%EB%A9%94%EC%9D%BC-%ED%98%95%EC%8B%9D-%EA%B2%80%EC%82%AC%ED%95%98%EA%B8%B0Email-Validation

 

Swift 이메일 형식 검사하기(Email Validation)

이메일 형식을 검사하려면 정규표현식(Regular Expression)에 대한 기본 지식이 있어야 했다. 하지만 이메일 validation이나 패스워드 validation을 치면 다양한 예제가 나오니깐 일단은 예제를 통해 조금

fomaios.tistory.com

https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1

 

Local and Remote Notification Programming Guide: Configuring Remote Notification Support

Local and Remote Notification Programming Guide

developer.apple.com

https://jintaewoo.tistory.com/31

 

url에 한글이 있을 경우 간단히 인코딩하는 방법

한글이 포함되어 있는 urlString으로 URL 컨버팅을 해줄 경우, nil 값이 반환되었다. 이럴때 characterSet을 지정해주면 간단히 해결된다. let urlString = "https://search.naver.com/search.naver?where=nexearc..

jintaewoo.tistory.com

https://eddiekwon.github.io/swift/2018/11/27/UTCtoKST/

 

Date를 UTC 와 KST로 출력하기 - swift · eddie's development log

Date를 UTC 와 KST로 출력하기 - swift 27 Nov 2018 | swift UTC 와 KST로 출력하기 - swift 중요한 사실 NSDate 또는 Date 객체는 타임존 정보를 포함하지 않고 모두 UTC기준입니다. 따라서 해당 지역의 시각으로 표

eddiekwon.github.io

https://stackoverflow.com/questions/44398618/ios-swift-setting-minute-to-0-for-my-date-object

 

iOS Swift: Setting minute to 0 for my date object

First my date is in string format as : "06-04-2017 06:28:17 PM" And then i converted to Date() using: let formatter = DateFormatter() formatter.dateFormat = "dd-MM-yyyy hh:mm:ss a" formatter.time...

stackoverflow.com

https://stackoverflow.com/questions/47040471/wkwebview-not-opening-custom-url-scheme-js-opens-custom-scheme-link-in-new-wind

 

WKWebView not opening custom URL scheme (js opens custom scheme link in new window)

I have a WKWebView in my application. I don't use UIWebView, because for some strange reason it doesn't open properly a web page with a lot of JS code in it. When I tap on the link with custom url

stackoverflow.com

https://cocoacasts.com/swift-fundamentals-how-to-convert-a-date-to-a-string-in-swift

 

How to Convert a Date to a String In Swift

Converting a date to a string isn't difficult in Swift. The class that makes this task painless is DateFormatter (or NSDateFormatter if you are using Objective-C). The DateFormatter class is easy to use. Let me show you an example using a playground. We ad

cocoacasts.com

https://stackoverflow.com/questions/47322379/swift-how-to-dismiss-all-of-view-controllers-to-go-back-to-root

 

Swift - How to dismiss all of view controllers to go back to root

I want a my app can go to a first view controller when every time users want it. So I want to create a function to dismiss all the view controllers, regardless of whether it is pushed in navigation

stackoverflow.com

https://stackoverflow.com/questions/39481636/updating-to-latest-version-of-cocoapods

 

Updating to latest version of CocoaPods?

I'm having some issues installing Alamofire 4.0 into my project. I've got the latest version of Xcode, running Swift 3, and when I try to install alamofire I'm getting like 800 compiler errors.

stackoverflow.com