본문 바로가기

전체 글533

[iOS 예제] Recording Wave View 만들기 이 애니메이션 효과를 뭐라고 표현해야할지 모르겠는데 주로 녹화같은 것 할 때 깜빡거리는 애니메이션 용도로 자주 봤던 것 같아서 Recording Wave View라고 했다. Github: https://github.com/Sky-Titan/WaveViewExample GitHub - Sky-Titan/WaveViewExample: WaveView by Swift Example WaveView by Swift Example. Contribute to Sky-Titan/WaveViewExample development by creating an account on GitHub. github.com WaveView import UIKit class WaveView: UIView { override class.. 2022. 7. 2.
[iOS Issue] CALayer의 contents의 image가 안보임 CALayer의 contents의 image가 안보임 CALayer's image not showing up I am trying to use CALayer to display an image, but the image is not showing up. I've verified that 'image' is not nil, image.size is correct, and layer.contents is a valid CABackingStore. - (void) stackoverflow.com 이슈라기 보단 내가 뭔가 CALayer의 원리 중 놓친 부분이 있어서 일어난 현상 같은데, 결과적으론 CALayer의 contents 사용 시 setNeedsDisplay()를 호출해서 image가 안 보였던 현상이다.. 2022. 6. 25.
[iOS 예제] Roulette 만들기 Fortune wheel in Swift A while ago i got a requirement to develop a spin wheel or fortune wheel (like the one in wheel of fortune TV show). The only difference is… medium.com 기본적인 원리는 위의 블로그를 참고해서 만들었다. 디테일은 내가 임의로 수정하고 추가했다. Github: https://github.com/Sky-Titan/RouletteExample GitHub - Sky-Titan/RouletteExample Contribute to Sky-Titan/RouletteExample development by creating an account on GitHub.. 2022. 6. 25.
[iOS] application(_:open:options:) 의 return 값은 어디서 사용되는가? Apple Developer Documentation developer.apple.com application(_:open:options:) delegate에게 URL로 이루어진 리소스를 열 것을 요청하고, 런치 옵션 dictionary를 제공한다. URL을 통해 application으로 진입할 때 호출된다. 만약 application(_:willFinishLaunchingWithOptions:) 와 application(_:didFinishLaunchingWithOptions:) 메서드 둘 다 false를 반환한다면 호출되지 않는다. 즉 하나라도 true를 반환한다면 호출된다. 만약 앱이 background 혹은 suspended 상태일 때 URL이 도착한다면, 시스템은 앱을 foreground로 옮.. 2022. 6. 25.