You need to make the following changes: -
1.)In Demo1ViewController.h do @interface Demo1ViewController : UIViewController { UIPageControl *pageCont; } @end 2.)In Demo1ViewController.m do In load view method write:- pageCont=[[UIPageControl alloc]init]; pageCont.numberOfPages=10
This works with the horizontal layout of the gmgrid view, you can change the logic of the didscroll method to scroll vertically if necessary. It can help you. Happy coding!
Gypsa source share