Gesture(2)
-
[iOS] Event & Gesture handling : PTS (Pinch-Touch&Tap-Sketch/Swipe) Pinch Example 4
지난 포스팅에 이어서 Pinch View를 구현한다. Set the Swipe View Layout 1. Library[➕]버튼을 클릭하여 Lable 가져오기 2.Lable 선택하고 하단의 Add New Constraints을 눌러 좌우 여백을 16, 상하 여백을 0으로 설정하여 화면을 꽉 채운다 3. Outlet Variable 추가 Editor 영역 상단 우측 Adjust Editor Options 버튼 > Assistant 클릭 Pinch Label: Assisttant 코드 영역으로 Drag & Drop Implement Pinch Gesture import UIKit class PinchViewController: UIViewController { @IBOutlet var pinchText: U..
2022.09.01 -
[iOS] Event & Gesture handling : PTS (Pinch-Touch&Tap-Sketch/Swipe) Touch&Tap Example 1
iOS의 touch, tap, swipe등을 활용하여 sketch 기능이 있는 앱을 만들 것이다. touch, tap, swipe, sketch를 각각 연습할 수 있도록 각 항목에 따른 뷰를 따로 생성하여 탭 바 컨트롤러로 뷰를 선택해 화면을 이동할 수 있게 할 것이다. 각각의 사항을 이벤트와 제스쳐 핸들링을 응용하여 연습해 보도록 하자. Example 1에서는 먼저 touch와 tab 이벤트를 구현한다. 앱 구성 Xcode로 Project를 생성한 뒤, Main 스토리보드 안 아이폰 화면 전체 드래그.상단 메뉴바 [Editor -> Embed in -> Embed in -> Tab Bar Controller] 선택. ✅ Tab Bar Controller 추가 완료 Library(Editor 영역 우측 ..
2022.08.31