1

我想在 appdelegate.m 中删除一个视图控制器的视图,在这个方法内 - (void) GetUserCompleted 我想删除一个视图..请帮帮我

下面是FB委托方法,在dis方法中我想删除包含loginwithFB按钮的视图,

appdelegate.m

- (void) GetUserCompleted
{
    NSLog(@"  %@",fbUserName);
    NSLog(@"  %@",fbmailId);
    NSLog(@"  %@",fblocation);
    NSLog(@"  %@",fbhomeTown);
    NSLog(@"   %@",fbgender);
}
4

1 回答 1

0

你应该使用类似的东西:

    NSMutableArray *allViewControllers = [NSMutableArray arrayWithArray: self.navigationController.viewControllers];
    for (id object in allViewControllers) {
        if ([object isKindOfClass:[FacebookClassNameToremove class]]) {
            [allViewControllers removeObject:object];
        }
    }
    self.navigationController.viewControllers = allViewControllers;
于 2013-02-20T13:36:49.847 回答