본문 바로가기

iOS/설명120

[iOS] Keyboard와 동일한 애니메이션 적용하기 Animate With The iOS Keyboard In Swift Create smooth layout animations when the iOS keyboard shows and hides. www.advancedswift.com Keyboard가 보이고 사라질 때, NSNotificationd의 userInfo에 들어있는 필드들을 통해서 keyboard의 크기와 animation duration, curve정보까지 받아낼 수 있다. import UIKit class ViewController: UIViewController { @IBOutlet weak var textField: UITextField! @IBOutlet weak var labelTopMargin: NSLayoutConstraint.. 2023. 1. 7.
[iOS] 앱 실행 방법에 따른 AppDelegate 호출 메서드 Swift ) 앱 실행방법에 따른 분기 - EEYatHo iOS AppDelegate로 분기한다. deepLink func application(_ application: UIApplication, handleOpen url: URL) -> Bool { ... let deepLinkUrl = url ... } universerLink func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorat eeyatho.tistory.com application(_:open:options:) project에 정의된 deeplink scheme을 이용하여 app이 실행되었을 경우에 호출된다. EX) kakao:.. 2023. 1. 7.
[iOS] CALayer.shouldRasterize CALayer 성능 향상 CALayer를 사용하면서 성능 향상 팁을 설명하고자 합니다. CALayer는 UIView에 프로퍼티(layer)로 선언되어 있으며 여러가지 형태를 변형 시킬 수 있습니다. 간단한 예로는 버튼이나 라벨등 UI 오브젝트 mixup.tistory.com When should I set layer.shouldRasterize to YES I've seen fixes for some lagyness issues by setting the layer property of the view view.layer.shouldRasterize = YES; I saw a great difference in performance when using a UICollectionView and prep.... 2023. 1. 1.
[iOS] 앱의 샌드박스 구조 [iOS] 앱 샌드박스(App Sandbox)와 Container Directory 앱 샌드박스(App Sandbox)와 Container Directory개념에 대해 알아 보겠습니다. Sandbox 샌드박스(Sandbox)란 미국에서 어린아이를 보호하기 위해 모래통(Sandbox)에서만 놀도록 하는데서 유래한 보안 모델을 말 jinnify.tistory.com About App Sandbox About App Sandbox App Sandbox is an access control technology provided in macOS, enforced at the kernel level. It is designed to contain damage to the system and the user’s dat.. 2022. 12. 31.