Mobile App 26

Swift 4 - NSMutableAttributedString을 이용하여 Outline text 만들기

NSMutableAttributedString 을 이용하면 Outline 효과를 줄 수 있다.NSAttributedStringKey let myString = "조심해라" // 1번 아웃라인 let attributes: [NSAttributedStringKey : Any] = [ NSAttributedStringKey.strokeColor: UIColor.red, NSAttributedStringKey.foregroundColor: UIColor.black, NSAttributedStringKey.strokeWidth: -3.0, NSAttributedStringKey.font: UIFont(name: "fontName", size: 80) ] ​ let customizedText = NSMutableA..

Mobile App/iOS 2019.03.09

Swift 4 - 폰트 체크하기, 폰트 적용하기

Swift 4 - 폰트 체크하기, 폰트 적용하기체크 리스트폰트를 넣는다. ( Target MemberShip 꼭 체크)info.plist에 넣는다. ( 파일명 .ttf 까지 넣어야 한다.)Fonts provided by application - item 0 - fontName.ttfBuild Phases - Copy Bundle Resources에 있는지 확인실제로 폰트를 적용할 때는 폰트 이름을 넣어야 한다. ( 파일이름 X ) let fontName = "blackTime" UIFont(name: fontNmae, size: fontSize)폰트 이름 체크 하기. // 폰트 체크 하기 UIFont.familyNames.sorted().forEach{ familyName in print("*** \(f..

Mobile App/iOS 2019.03.09

RxSwift 정리

RxSwiftSubscribeonNextonErroronCompletedHot and ColdHot - Observable 생성되자마자 Cold - Observable 구동할때DisposeBag addvar disposebag = DisposeBag() ​ 1번 disposebag.insert(dispose) ​ 2번 .disposed(by: disposebag)orEmpty비어있을 때 null을 안보냄.inputTextField에 좋은듯???just 그대로 [1,2,3,4]from 순차적으로 1234map,filter,reduce 등onNext보다 먼저 실행.Operator생성변환필터링결합오류처리조건과 불린 연산자참고http://reactivex.io/http://rxmarbles.com/https:/..

Mobile App/iOS 2018.12.31