开发者

clear image array on button click

开发者 https://www.devze.com 2023-01-06 04:41 出处:网络
i have an array imageArray= [[NSArray alloc] initWithObjects:[UIImage imageNamed:@\"1.png\"], 开发者_JS百科[UIImage imageNamed:@\"2.png\"],

i have an array

 imageArray  = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"1.png"], 
                        开发者_JS百科    [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];

i want to clear this array on button click.

these are series of images on screen.

and if i press button clearing the image should clear all the images.

How can i do it?

regards shishir


[imageArray release];
imageArray = nil;
0

精彩评论

暂无评论...
验证码 换一张
取 消