我是 iPhone 开发的新手。我在视图中显示了很多图像。我还放置了名为 LOAD MORE 的按钮以获取更多图像。我还在 LOAD MORE 事件中下载图像。这是我的代码:`
-(void)btnLoadMorePressed
{
[appdelegate showLoader:MBProgressHUDModeIndeterminate];
RequestResponseManager *requestManager=[RequestResponseManager sharedInstance];
[requestManager setRequestPropery:self ExtraInfo:nil];
Album *album=[appdelegate.CurrentUser.albumListarray objectAtIndex:indexNum-1];
NSArray *obj_keys = [NSArray arrayWithObjects:@"UserId",@"AlbumId",@"SessionId",@"PageNo",@"ModMethod", nil];
NSArray *objects = [NSArray arrayWithObjects:appdelegate.CurrentUser.userId,album.AlbumId,appdelegate.sessionId,[NSString stringWithFormat:@"%d",currentPage],@"getPhotoListByAlbumId",nil];
NSDictionary *jsonDictionary = [NSDictionary dictionaryWithObjects:objects forKeys:obj_keys];
NSString *jsonString = [jsonDictionary JSONRepresentation];
NSString *requestString=[NSString stringWithFormat:@"data=%@",jsonString];
currentRequest=JGetAlbumPhotoList;
[requestManager sendPostHttpRequest:GET_USER_ALBUM_PHOTO_URL RequestType:JGetAlbumPhotoList PostContent:requestString];
}
但是当我试图获取更多图像时,它会给我内存警告,然后突然崩溃。请帮助我。谢谢...