issue4 [iOS Issue] CGAffineTransform에서 scale을 0으로 설정하면 애니메이션이 동작하지 않는 현상 Problem when animating a UIView to scale to zero using CGAffineTransform on iOS I was recently working on an application which required me to display an animation which scales a UIView down to zero. The approach I took… medium.com 원인 설명 글이 길지만 가장 중요한 내용만 요약하자면 scale factor를 0으로 설정하게 되면 수식에서 divide by zero 계산을 포함시키기 때문에 원하는 결과가 나오지 않게 되는 것이 원인이다. Solution scale factor를 0이 아닌 0에 근접한 값으로 설정하고 UIVie.. 2022. 2. 6. [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. [iOS Issue] UICollectionView cell에서 SDWebImage 사용 시 잘못된 이미지 로드되는 이슈 Cell being populated with wrong images · Issue #1024 · SDWebImage/SDWebImageHi, I'm currently using this code to set-up my images: [cell.coverImage sd_setImageWithURL:[self.dataInJSONModel.Content[indexPath.row] CoverImage] placeholderImage:[UIImage imageNamed:@"i...github.com UICollectionView cell에서 SDWebImage를 사용할 때 cell을 scroll할 때마다 잘못된 이미지들이 로드되어 보이는 현상이 발생한다. Cell Class에 prepareForReuse메서드를.. 2021. 1. 21. [iOS Issue] UICollectionViewCell Size 동작 이상 이슈 How to set UICollectionViewCell Width and Height programmatically I am trying to implement a CollectionView. When I am using Autolayout, my cells won't change the size, but their alignment. Now I would rather want to change their sizes to e.g. //var size = CGSize( stackoverflow.com xib파일을 이용해서 custom cell을 만들고 그것을 collecitonView에 사용하는 작업을 하고 있었는데 Cell의 사이즈가 제대로 동작하지 않으면서 스크린 밖을 벗어나는 이슈를 발견했다. 원래.. 2021. 1. 14. 이전 1 다음