Help with some text codes

Discussion in 'iOS Programming' started by hoosierfan24, Jul 31, 2009.

  1. hoosierfan24 macrumors member

    Jul 31, 2009
    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
    + (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

  2. ritsard macrumors regular


    Jun 18, 2009
    SF Bay Area, CA
    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.

Share This Page