Iphone 为什么我的应用程序在iPod中崩溃?

Iphone 为什么我的应用程序在iPod中崩溃?,iphone,Iphone,我正在UIScrollView上添加UIImageView,但当数组计数较高时,我的应用程序会崩溃 这是我的密码 scr=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 60, 320, 320)]; scr.tag=1000; [scr setDelegate:self]; [self.view addSubview:scr]; dispatch_queue_t queeee =

我正在UIScrollView上添加UIImageView,但当数组计数较高时,我的应用程序会崩溃

这是我的密码

scr=[[UIScrollView alloc]initWithFrame:CGRectMake(0, 60, 320, 320)];
        scr.tag=1000;
        [scr setDelegate:self];
        [self.view addSubview:scr];

        dispatch_queue_t queeee =dispatch_queue_create("raj", 0);

        int countt=200;
        for(int i=0;i<countt;i++)
        {

            CGRect rectt=CGRectMake((i%3*90)+30,(i/3*90)+40,80,70);

            UIImageView *asyImagee = [[UIImageView alloc]initWithFrame:rectt];            

            dispatch_async(queeee, ^{

            NSData *data=[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"]];

            __block UIImage *imgg=[UIImage imageWithData:data];


                dispatch_async(dispatch_get_main_queue(), ^
                               {
                                   asyImagee.image=imgg;
                                   imgg=nil;
                               });
            });

            asyImagee.tag=i;
            [scr addSubview:asyImagee];
            asyImagee=nil;
        }
        [scr setContentSize:CGSizeMake(0, countt/3*110)];  
scr=[[UIScrollView alloc]initWithFrame:CGRectMake(0,60320320)];
scr.tag=1000;
[scr setDelegate:self];
[self.view addSubview:scr];
调度队列queeee=调度队列创建(“raj”,0);
int countt=200;

对于(int i=0;i内存问题类似于在后台线程中工作吗?是否收到内存警告?是否调用了
ApplicationIDReceiveMemoryWarning
?是..我在后台线程中工作..否在该代码中没有任何内存警告..应用程序直接结束