![](/img/trans.png)
[英]iphone - numberOfRowsInSection being called before viewDidAppear
[英]viewDidAppear being called before WebService connection methods
ViewDidAppear方法我将断点放在操作的最后一步,但是将断点的viewDidAppear方法放在首先要尝试直接运行的地方。 使用WebService的连接正在兴起。 在运行Web服务连接时成为第一个断点,并调用最新的viewDidAppear。 但是,在调用WebService连接时提供断点viewDidAppear之前,这将导致返回值NULL。 简而言之,在获得所有Web服务连接之后,我想称为viewDidAppear方法。 断点是这样的,但是当我想以相同的方式工作时。
- (void)viewDidAppear:(BOOL)animated
{
[self LabelYukle];
[super viewDidAppear:animated];
}
-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{
if(theConnection)
[webData setLength:0];
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.