为什么UIPageControl上没有更新currentPage指示器?

Jav*_*ría 3 uipagecontrol ios

我使用以下代码更新currentPage我的应用程序中的指标:

pgcNotification.currentPage = 3;
pgcNotification.numberOfPages = 4;
Run Code Online (Sandbox Code Playgroud)

虽然,指标永远不会改变,并始终保持在第一位置.

Jav*_*ría 6

问题是你首先要说的是页数,其次是当前的页面.从来没有相反的方式.

pgcNotification.numberOfPages = 4;
pgcNotification.currentPage = 3;
Run Code Online (Sandbox Code Playgroud)