dismissViewControllerAnimated crash at ios5

前端 未结 2 1587
猫巷女王i
猫巷女王i 2020-12-21 23:01

Does the code crash, because of a circular reference?

MenuController: UIViewController

- (id)initWithNibName:
{...
TabsController *tabs = [[TabsController a         


        
2条回答
  •  时光取名叫无心
    2020-12-21 23:22

    tough to tell without more info (are you using ARC, are you retaining/assigned the delegate, etc...) but per the iOS docs you are also using deprecated modalview methods. May be worth trying:

    [self presentViewController:tab animated:YES completion:NULL];
    

    and

    [self dismissViewControllerAnimated:YES completion:NULL];
    

提交回复
热议问题