본문 바로가기

iOS192

[iOS] Real Device vs iOS Simulator Will an iOS app run on a device the same way it does on the iOS simulator? I frequently hear variations of the question: roadfiresoftware.com Real Device vs iOS Simulator simulator에서는 코드가 device에서와는 다르게 컴파일된다. simulator에서 실행할 땐, x86 아키텍처 용으로 컴파일이 된다. device에서 실행할 때는, arm 아키텍처 용으로 컴파일이 된다. 즉, simulator와 device에서는 동일하게 컴파일된 코드를 사용하지 않는다. simulator에서 일부 API들을 쓸 수 없다. push notification, camera, micr.. 2022. 4. 9.
[iOS] Lottie GitHub - airbnb/lottie-ios: An iOS library to natively render After Effects vector animations An iOS library to natively render After Effects vector animations - GitHub - airbnb/lottie-ios: An iOS library to natively render After Effects vector animations github.com Lottie lottie는 vector 기반의 animation효과들을 최소한의 코드로 구현할 수 있게 해주는 , Android, iOS에서 쓰일 수 있는 모바일 라이브러리다. JSON 포맷으로 만들어진 animation 리소스파일을 .. 2022. 4. 9.
[iOS] point(inside:with:) Apple Developer Documentation developer.apple.com point(inside:with:) receiver의 bounds내에 해당 point를 포함하고 있는지 여부를 반환한다. point: receiver의 local 좌표계를 따르는 값이다. 즉, point()를 호출한 뷰의 좌표계 기준으로 계산된 값이다. hitTest()와 용도가 비슷해서 헷갈리는데, 실제 사용법은 비슷하게 쓰일 수 있다. (View의 특정 영역에서만 event를 수신하도록 할 수 있다.) hitTest()는 receiver의 view 계층내에 있는 view들의 point(inside:with:) 함수를 호출해서 어느 view가 해당 point를 포함하는 가장 멀리 있는 view인지를 판단해서 반환하.. 2022. 4. 9.
[iOS Issue] Webview에서 URL link가 실행되지 않는 이슈 Why is WKWebView not opening links with target="_blank"? WKWebView does not open any links which have target="_blank" a.k.a. 'Open in new Window' attribute in their HTML -Tag. stackoverflow.com Issue 이슈 내용은 웹뷰에서 로드된 웹페이지에서 문서 내부에 첨부된 URL 링크를 클릭 시 링크가 동작하지 않는 이슈였다. Root cause 찾아보니 링크가 걸린 HTML 태그에 target="_blank" 라는 태그가 포함되어 있으면 문제가 생기는 거 였다. Solution 일단 target="_blank"를 안 쓰는게 가장 효과적이지만 앱 내부에서도 WK.. 2022. 3. 28.