본문 바로가기
iOS/iOS

image scrolling(paging) & zoom

by 패쓰킴 2022. 4. 4.
728x90

참고:

https://www.raywenderlich.com/5758454-uiscrollview-tutorial-getting-started

 

UIScrollView Tutorial: Getting Started

In this UIScrollView tutorial, you’ll create an app similar to the default iOS Photos app to learn all about paging, scrolling and more with UIScrollView.

www.raywenderlich.com

https://stackoverflow.com/questions/14128264/ios-multiple-images-paging-and-zooming-issues

 

iOS Multiple Images Paging and Zooming Issues

There are a few threads out there related to this issues, but could not find a solid solution. Any help would be appreciated. This code works great if you give it one image. Zooms in perfect. You g...

stackoverflow.com

https://github.com/skygaikwad/IZS-Image-Pinch-Zoom-Slider-

 

GitHub - skygaikwad/IZS-Image-Pinch-Zoom-Slider-: Image Pinch Zoom Slider

Image Pinch Zoom Slider. Contribute to skygaikwad/IZS-Image-Pinch-Zoom-Slider- development by creating an account on GitHub.

github.com

 

내가 원하는 UI는

한 화면에

중앙에는 이미지뷰가 있고 상단에는 이미지의 페이지 넘버가 있는 화면이었다

이미지는 스크롤(페이징)이 가능하면서 줌아웃이 되어야 하고,

이미지가 스크롤되고 있을 때 페이지넘버를 보여주는 레이블은 고정이어야 했다.

따라서,

이 사이트의 예제를 채택하여 

원하는 ui를 그릴 수 있었다

 

 

728x90

'iOS > iOS' 카테고리의 다른 글

UILabel에 이미지 넣기  (0) 2022.04.20
PDFView  (0) 2022.04.11
Firebase DynamicLinks  (0) 2022.04.01
Delegate 사용  (0) 2022.03.28
뷰 계층 관리  (0) 2022.03.25

댓글