How to combine UIScrollview with UIPagecontrol to show different views?

前端 未结 4 1319
刺人心
刺人心 2021-02-06 14:59

I\'ve searched and searched for a tutorial for this but none of them are what I\'m looking for. I\'ve tried Apple\'s sample but it is just colors and I don\'t know how to make i

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 15:53

    Here's the Apple PageControl code with images. To use, just drag your images to the project. The default images are image1.jpg, image2.jpg, etc. If you need png, just change the extension to .png.

    Then replace the MyViewController.m code with this code, and you've got pagecontrol with Images.

    Cheers, Jordan

    http://pastebin.com/raw.php?i=c3hS29sC

提交回复
热议问题