How to create image slider in iOS?

后端 未结 3 1814
别那么骄傲
别那么骄傲 2021-01-07 02:14

I\'m wondering how to create image slider like those that we are using to look through pictures in different iOS apps, for example in Photos or Airbnb app.

Is it a p

3条回答
  •  渐次进展
    2021-01-07 03:03

    There are one great image slider lib i used on my project https://github.com/kimar/KIImagePager, definitely worth checking. Here are few steps to integrate the library with your project.

    1. Download and import the library to your project
    2. Add view to your nib file (if you are using it with nib file), set the view class to use KIImagePager
    3. Set the properties as seen on their example page.

    And there you go, you will have working image slider on your project.

提交回复
热议问题