Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

hoosierfan24

macrumors member
Original poster
hello i am pretty new to Ipod app dev and i am getting close to finishing my first app but i need help with this one thing. I am doing a multi page app with lots of scrolling options and and i have it right now so that there is a differnt color on every page for its background it is like this
Code:
+ (UIColor *)pageControlColorWithIndex:(NSUInteger)index {
    if (__pageControlColorList == nil) {
        __pageControlColorList = [[NSArray alloc] initWithObjects:[UIColor redColor], [UIColor yellowColor], [UIColor magentaColor],
                                  [UIColor blueColor], [UIColor orangeColor], [UIColor brownColor], [UIColor grayColor],[UIColor magentaColor], [UIColor redColor], nil];

and i was wondering if you could help me and make it so i could do the same thing with text, making it show different text on every page

thanks
 
Do you want static text or dynamic text? You can probably do the same approach by making an array with different NSString's. If you can describe more what you are trying to do, that would be more helpful.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.