数组处理

    1.        //合并字符串数组 
  1.         NSString *str = [array componentsJoinedByString:@"|"]; 
  2.         //字符串切割成数组 
  3.         NSArray *array=[str componentsSeparatedByString:@"|"]; 
  4.         //可变数组元素删除 
  5.         [array removeObjectAtIndex:1]; 
      1.         //取指定索引元素 
    1.         [array objectAtIndex:1]
    2.        
posted @ 2013-02-01 15:00  天纯蓝  阅读(130)  评论(0编辑  收藏  举报