2010-07-05 69 views
0

我有一个数组清晰的图像阵列点击

imageArray = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"1.png"], 
          [UIImage imageNamed:@"2.png"], 
          [UIImage imageNamed:@"3.png"], 
          [UIImage imageNamed:@"4.png"], 
          [UIImage imageNamed:@"5.png"], 
          [UIImage imageNamed:@"6.png"], 
          [UIImage imageNamed:@"7.png"], 
          [UIImage imageNamed:@"8.png"], 
          [UIImage imageNamed:@"9.png"], 
          [UIImage imageNamed:@"10.png"], 
          [UIImage imageNamed:@"11.png"], 
          [UIImage imageNamed:@"12.png"], 
          nil]; 

我想清除按钮,点击这个数组。

这些是屏幕上的一系列图像。

如果我按下按钮清除图像应清除所有的图像。

我该怎么办?

问候 shishir

回答

3
[imageArray release]; 
imageArray = nil; 
+1

确保您有此链接为一个UIButton! – 2010-07-05 08:42:19