我想在iOS7中使用UIPageViewController實現一個簡單的教程。我在UIPageViewControllerDataSource中實現了所有的方法,它給了我一個UIPageControl。除了pageControl的背景不透明以外,一切都可以正常工作,因此它會阻止背後的其他視圖的一部分。PageControl在UIPageViewController中使用backgroundColor
我嘗試用下面的代碼
pageControl.backgroundColor = [UIColor greenColor]; //works, background is green
pageControl.backgroundColor = [UIColor clearColor]; //not working, background is black.
//更新 原來,黑色是的PageControl的層的背景顏色改變的PageControl的外觀。而這個頁面控制層不在我用於頁面的ViewControllers之上。它們是平行的。所以無論我如何修改它的顏色,我都無法讓我的ViewController進入全屏。
有沒有一種簡單的方法來移動我的ViewControllers上的PageControl?