作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
大家好,我正在表格 View 单元格中显示远程图像。当我滚动图像、删除其中一个并重新加载它们时,我的应用程序退出并显示此警告消息。
Ignoring packet error, continuing...
gdb stack trace at 'putpkt: write failed':
0 gdb-arm-apple-darwin
0x0019026b Remote_backtrace_self + 54
recent remote packets prior to 'putpkt: write failed':
TableView Cell 图像的代码是
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *celltype=@"cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:celltype];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.backgroundColor=[UIColor clearColor];
//cell.textLabel.text=[[resultarray objectAtIndex:indexPath.row] valueForKey:@"Service"];
/*UIImage *indicatorImage = [UIImage imageNamed:@"indicator.png"];
cell.accessoryView =
[[[UIImageView alloc]
initWithImage:indicatorImage]
autorelease];*/
/*NSThread *thread=[[NSThread alloc]initWithTarget:self selector:@selector() object:nil];
[thread setStackSize:44];
[thread start];*/
cell.backgroundView=[[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cell.png"]]autorelease];
// [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"back.png"]] autorelease];
cell.selectionStyle=UITableViewCellSelectionStyleNone;
}
UIImageView *imageView= [[UIImageView alloc] initWithFrame:CGRectMake(19, 15, 75, 68)];
imageView.contentMode = UIViewContentModeScaleToFill;
frameImagePath= [NSString stringWithFormat:@"http://XYZplayz.com/snapit/products/%@",[[productInfoArray objectAtIndex:indexPath.row]valueForKey:@"Image"]];
[imageView setImageWithURL:[NSURL URLWithString:frameImagePath]placeholderImage:[UIImage imageNamed:@"no_image.png"]];
[cell.contentView addSubview:imageView];
[imageView release];
imageView = nil;
return cell;
}
删除后我调用的重新加载表中数据的方法是
-(void)viewWillAppear:(BOOL)animated
{
spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
spinner.center = self.view.center;
[self.view addSubview:spinner];
[spinner startAnimating];
[[SnapItParsing sharedInstance]assignSender:self];
[[SnapItParsing sharedInstance]startParsingForShowProducts:appDel.userIdString];
}
最佳答案
每当我收到此错误时,重新启动 Xcode 和我的设备即可解决该错误。
关于iphone - 错误,Putpkt 写入失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4720980/
大家好,我正在表格 View 单元格中显示远程图像。当我滚动图像、删除其中一个并重新加载它们时,我的应用程序退出并显示此警告消息。 Ignoring packet error, continuing
我正在使用AdHoc部署将应用程序部署到iPad上,但出现此错误。我已经在SO中检查了几个同样的问题,但是解决方案始终是重新启动XCode,重新启动iPad,重新启动Mac。我已经完成了全部三个操作,
我开发了应用程序的 Beta 版本,我希望将其放在几个 friend 的 iPhone 上进行测试。我已在开发人员门户上完成了临时部署步骤,并且还按照此处的说明进行操作:http://www.tale
我的应用程序在模拟器中成功运行,但在设备上运行时崩溃,并出现以下错误: putpkt: write failed: Broken pipe putpkt: write failed: Broken p
我是一名优秀的程序员,十分优秀!