Problem dismissing multiple modal view controllers

后端 未结 9 1621
暗喜
暗喜 2020-12-09 10:43

I am having trouble getting my modal view controllers to display properly. I have a parent view controller that is the delegate for modal view A. In modal v

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 11:33

    Simple:

    Dismiss all views:

    [self dismissModalViewController animated:YES];
    [self dismissModalViewController animated:YES];
    [self dismissModalViewController animated:YES];
    [self dismissModalViewController animated:YES];
    

    (one for each added modal view)

    then present a new modal view controller

提交回复
热议问题