UIActionSheet in iOS8 saves views

I am using UIActionSheet in iOS8 (my app needs to support iOS7), but it looks like in iOS8, UIActionSheet saves the view! I made a simple application where I have two view controllers in my navigation view controller, ViewController1 and ViewController2.

ViewController2 is an action sheet. In my delegate, which is itself a view controller, I dismiss the view controller.

- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex {
    [self.navigationController popViewControllerAnimated:YES];
}

      

What I observe is that in iOS8.1 this action file somehow retains the view it is presented with. In iOS 7.1 this works great.

Does anyone stumble upon this or find any workarounds? I created https://github.com/brightredchilli/iOS8-actionsheet-tests as a proof of concept.

+3


source to share





All Articles