분류 전체보기533 [iOS 예제] Drag and Drop가능한 UIView만들기 import UIKit class DraggableView: UIView { override func touchesBegan(_ touches: Set, with event: UIEvent?) { super.touchesBegan(touches, with: event) moveCenter(to: touches) } override func touchesMoved(_ touches: Set, with event: UIEvent?) { super.touchesMoved(touches, with: event) moveCenter(to: touches) } private func moveCenter(to touches: Set) { guard let position = getTouchPosition(from: .. 2021. 12. 5. [iOS] CALayer iOS) CALayer 제대로 이해하기 안녕하세요? 소들입니다 :) 오늘은 CALayer에 대해 공부해보려고 해요! UIView는 다음과 같이 CALayer 타입의 layer 라는 프로퍼티를 갖고 있거든여 이 layer는 우리가 직접적이건 간접적이건 꽤나? 건드 babbab2.tistory.com Apple Developer Documentation developer.apple.com Core Animation iOS에서 화면을 1초당 60프레임으로 렌더링해서 유지할 수 있도록 GPU에 직접 접근할 수 있게하는 OpenGL이 존재한다. 하지만 OpenGL은 매우 low하기 때문에 다루기가 매우 어렵다. OpenGL보다 간단하게 사용해서 그래픽을 다룰 수 있도록 만든 것이 CoreGraphics라는 프레임.. 2021. 12. 5. [iOS] Deeplinking, Universal link, Deferred deeplinking 유니버셜 링크, 딥링크... 이게 다 뭐야! 유니버셜 링크와 구현 히스토리 팀에서 유니버셜 링크 담당하시던 분이 휴직하시면서 이번 프로젝트에서는 어떻게 제공해야하는지 내용을 남기고 가셨다. 추적하면서 서버입장에서는 어떻게 해야하는 건지 다시 또 juneyr.dev Deeplinking 유저가 웹이나 혹은 다른 앱에서 다른 앱의 특정 화면으로 이동할 수 있게 해주는 기능이다. Scheme 앱 프로젝트 파일에서 해당 앱의 Scheme을 설정해놓으면 다른 앱에서 해당 Scheme Url을 이용하여 특정 앱의 특정 페이지로 이동할 수 있다. iOS, 안드로이드 모두에서 사용되는 방식이다. 중복 스킴이 허용되기 때문에 다른 앱과 스킴이 겹칠 수 있다. EX) tistory-blog://MyBlog?id=....... 2021. 12. 5. [iOS] UIActivityViewController 컨텐츠 공유 UIActivityViewController by example How to share content across the system www.hackingwithswift.com Apple Developer Documentation developer.apple.com UIActivityViewController 내 앱에서 사용하고 있는 표준 서비스들을 다른 앱들에게 제공할 수 있게 해주는 ViewController 기능 String, URL, Image 등의 액션 아이템들을 SMS, e-mail 등으로 공유하게 해준다. 아이템을 Paste board에 복사해준다. iPad에서는 popover 스타일로 띄워야 한다. iPhone이나 iPod touch에서는 modal 스타일로 띄워야 한다. import U.. 2021. 12. 5. 이전 1 ··· 45 46 47 48 49 50 51 ··· 134 다음