guess simple question assigning array value to string

Discussion in 'iOS Programming' started by ulquiorra, Jun 24, 2009.

  1. ulquiorra macrumors member

    Jun 17, 2009
    hello everyone,
    I would like to know what the quickest way is of assigning a value from
    let's say
    NSMutableArray testarray = [[ NSMutableArray alloc ] initWithObjects:mad:"test , @"test2, nil]

    I would like to have a NSMutableString TESTstring get the value test.

    does anyone know the quickest way to realize this.

    ( forgive me for this question )
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    NSMutableArray* testarray = [[NSMutableArray alloc] initWithObjects:@"test", @"test2", nil];
    NSMutableString* s = [[testarray objectAtIndex:0] mutableCopy];

Share This Page