본문 바로가기

iOS192

[iOS] CAEmitterLayer로 애니메이션 효과 만들기 CAEmitterLayer로 애니메이션 효과 만들기 import UIKit class ViewController: UIViewController { let emitter = CAEmitterLayer() override func viewDidLoad() { super.viewDidLoad() createEmitter() } private func createEmitter() { emitter.emitterPosition = CGPoint(x: view.center.x, y: view.center.y) let cell = CAEmitterCell() cell.scale = 0.01 cell.lifetime = 2 cell.birthRate = 10 cell.velocity = 100 cell.emissio.. 2021. 6. 15.
[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.