0
4 UIViewController 포함 된 UITabBarController 있고 viewDidAppear 호출 할 때 작동하지 않습니다. 왜 iOS 4.3에서만 이런 일이 발생하는지 모르겠습니다.iOS 4.3에서 ViewDidAppear가 작동하지 않습니다?
//
UINavigationController *nav3 = [[UINavigationController alloc] init];
SearchViewController *searchViewController = [[SearchViewController alloc] init];
searchViewController.context = context;
[nav3 pushViewController:searchViewController animated:NO];
[arrayViewController addObject:nav3];
[nav3 release]; [searchViewController release];
//
UINavigationController *nav4 = [[UINavigationController alloc] init];
FavorisViewController *favorisViewController = [[FavorisViewController alloc] init];
favorisViewController.context = context;
[nav4 pushViewController:favorisViewController animated:NO];
[arrayViewController addObject:nav4];
[nav4 release]; [favorisViewController release];
즐겨 찾기의 UIViewController :
#pragma mark - View lifecycle
- (void)viewDidLoad
{
[super viewDidLoad];
NSError *error;
NSFetchRequest *fetch = [[NSFetchRequest alloc] init];
fetch.entity = [NSEntityDescription entityForName:@"Businesses" inManagedObjectContext:context];
fetchObject = [context executeFetchRequest:fetch error:&error];
[fetch release];
}
- (void)viewDidAppear:(BOOL)animated
{
NSLog(@"test");
}
작동하지 않습니까? –
iOS 5.0에서 제대로 작동합니까? –