草庐IT

didViewAppear

全部标签

ios - 尝试从 didViewAppear 执行 NSLog 时的意外行为

我在类里面有这个设置:-(void)viewDidAppear:(BOOL)animated{NSLog(@"test");NSString*htmlFile=[[NSBundlemainBundle]pathForResource:@"get_business_ideas"ofType:@"html"];NSURL*url=[NSURLfileURLWithPath:htmlFile];NSURLRequest*rq=[NSURLRequestrequestWithURL:url];[theWebViewloadRequest:rq];}NSLog语句从未出现在我的日志屏幕中,但其余