티스토리 뷰

반응형

iOS 9부터 아이패드 멀티태스킹이 지원되었다고 합니다. 

slide over 또는 split view로 두가지 앱을 동시에 띄울 수

있는 것이죠!

 

 

관련 WWDC 영상으로는 Getting Started with Multitasking on iPad in iOS 9 가 있습니다.

 

 

⚠️ 멀티태스킹과 멀티 윈도우는 다릅니다...!! ⚠️

 

멀티 윈도우는 iOS 13부터 지원가능한데,

멀티태스킹 처럼 서로 다른 두 앱을 각각 띄우는 것 뿐만 아니라 똑같은 앱을 두개 띄울 수 있는 것 까지 포함합니다.

 

메모앱을 두개 띄우고 텍스트를 입력하는 영상입니다.

 

 

멀티 윈도우 관련 WWDC 영상으로는 Introducing Multiple Windows on iPad 가 있습니다. 

 

 

[1] 멀티 태스킹 지원하는 방법

 

iOS 9 이상 이라면 Slide Over & Split View는 default로 가능하게 설정되어있습니다. 

여기 나와있는 것들이 default로 이미 다 설정되어있기때문..!!

 

 

 

 

만약 나의 앱이 Slide Over & Split View가 되는 것을 막고 싶다면 Requires full screen을 체크해주세요!! 

 

 

 

 

문서에 나와있습니다.

 

[2] 멀티 태스킹에서 이미지 끌어오기 지원하기

 

멀티태스킹의 꽃(?) 이라고 할 수 있는 개인적으로 정말정말 잘 쓰고 있는 기능인 이미지 끌어오기 기능은 어떻게 할 수 있을까요?!

 

https://developer.apple.com/documentation/uikit/drag_and_drop

 

 

이 기능은 iOS 11부터 가능하네요

관련 WWDC 영상은  Introducing Drag and Drop 입니다. 

 

이미지를 다른 앱으로부터 받으려면 UIDropInteractionDelegate

나의 앱의 이미지를 다른 앱으로 보내려면 UIDragInteractionDelegate 

를 구현해야합니다. 

 

Drag & Drop문서에 자세하게 설명되어있어요 :-) 

 

 

 

 

Sample Code

 

애플에서 제공하는 샘플 코드입니다 👏

 

1) Adopting Drag and Drop in a Custom View

 

https://developer.apple.com/documentation/uikit/drag_and_drop/adopting_drag_and_drop_in_a_custom_view

 

Adopting Drag and Drop in a Custom View | Apple Developer Documentation

Sample Code Adopting Drag and Drop in a Custom View Demonstrates how to enable drag and drop for a UIImageView instance. Download OverviewThis sample code project uses a UIImageView instance to show how any instance or subclass of the UIView class can act

developer.apple.com

2) Adopting Drag and Drop in a Table View

 

https://developer.apple.com/documentation/uikit/drag_and_drop/adopting_drag_and_drop_in_a_table_view

 

Adopting Drag and Drop in a Table View | Apple Developer Documentation

Sample Code Adopting Drag and Drop in a Table View Demonstrates how to enable and implement drag and drop for a table view. Download OverviewThis sample code project uses a UITableView instance to show how to make a table view into a drag source and a drop

developer.apple.com

 

반응형
댓글