본문 바로가기

ios83

[iOS] translatesAutoresizingMaskIntoConstraints translatesAutoresizingMaskIntoConstraints true: view를 frame, bounds, rect로 크기, 위치를 조절하고 싶을 때 false: view를 constraint로 크기, 위치 조절하고 싶을 때 xib에서 view 생성 시 기본적으로 false 코드에서 view 생성 시 기본적으로 true 코드에서 view 생성 후 constraint 적용하고 싶으면 이 속성을 false로 바꿔줘야 한다. 2021. 6. 17.
[iOS] rootViewController 변경하기 iOS 13: Swift - 'Set application root view controller programmatically' does not work I have following code in my AppDelegate.swift to setup root view controller for an iOS application. But it does not work. It follows Target structure (defined under General tab) and ignores this co... stackoverflow.com rootViewController 변경하기 SceneDelegate.swift 삭제 Info.plist의 Application Scene Manifest 키 삭제 Ap.. 2021. 6. 15.
[iOS Issue] Remote Notification이 두 번 생성되는 이슈 iOS device receiving push notifications twice · Issue #195 · OneSignal/OneSignal-Flutter-SDK Whenever I send a notification to an iOS device the notification is coming through twice. I found something related to this on the onesignal website here: https://documentation.onesignal.com/docs/d... github.com 오래된 비정상 토큰에 의한 문제이며 앱을 삭제 후 재설치하면 해결됨. 2021. 6. 4.
[iOS Issue] CustomView에서 sublayer 추가 시 이슈 카메라 프리뷰를 보여주는 Custom View를 만들던 중 AVCaptureVideoPreviewLayer를 superView frame에 맞춰서 sublayer로 넣었으나 superView의 크기 계산이 sublayer를 추가하고 난 이후에 이루어져서 계속 크기가 틀어짐 그래서 기존 custom View의 Main layer 클래스를 AVCaptureVideoPreviewLayer 로 바꾸어서 해결 // // CameraView.swift // MyFoundation // // import UIKit import AVFoundation open class CameraView: UIView { private lazy var captureDevice = AVCaptureDevice.default(for: .. 2021. 6. 4.