Following the PageControl sample code on the Apple site here, i have created my application based on that.
I have a grid of buttons, which need to change based on the current page. Where would be the best place to set up my array containing the buttons? In the -initWithPageNumber
method or in -viewDidLoad
of the view controller? In -viewDidLoad
i currently switch on an ivar called pageNumber
to determine what to load... is there a better way?
Thanks