Help with some text codes

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

  1. hoosierfan24 macrumors member

    Joined:
    Jul 31, 2009
    #1
    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
     
  2. ritsard macrumors regular

    ritsard

    Joined:
    Jun 18, 2009
    Location:
    SF Bay Area, CA
    #2
    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