UIPageControl - Change page on click of button

时光怂恿深爱的人放手 提交于 2019-12-02 06:37:14

It's a little cheeky, really you should refactor the method, but:

Assuming you are on page zero (I guess there is a different button on page 1), then you can just call your method and pass nil as the parameter. The gesture isn't actually used so everything should be fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!