2 yue1liang1chuan yue1liang1chuan 于 2013.07.15 10:36 提问

给数组添加对象时报EXC_BAD_ACCESS

给数组添加对象时报EXC_BAD_ACCESS

int indiceCorrente=0; int differenza=delegate.reader.feedItems.count;

while(variable!=0){
switch(variable){

case 1: ----
case 2: ----

default: {

            NSMutableIndexSet *add=[[[NSMutableIndexSet alloc]init] autorelease];
            [add addIndex:indiceCorrente];
            [add addIndex:indiceCorrente+1];
            [add addIndex:indiceCorrente+2];
            [self aggiungiElementoArrayLettura:add];





            //[page addObject:@"makeLayout3"];
            NSMutableArray *pagina=[[NSMutableArray alloc]init];

            indiceCorrente=indiceCorrente+1;
            [pagina addObject:indiceCorrente]; <------ EXC_BAD_ACCESS WHY????
            indiceCorrente=indiceCorrente+1;
            [pagina addObject:indiceCorrente];
            indiceCorrente=indiceCorrente+1;
            [pagina addObject:indiceCorrente];


            [pages addObject:pagina];

        }

}
}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!