Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Problem when used as background for UIPageViewController #32

Open
Kaitis opened this issue Jan 19, 2015 · 0 comments
Open

Memory Problem when used as background for UIPageViewController #32

Kaitis opened this issue Jan 19, 2015 · 0 comments

Comments

@Kaitis
Copy link

Kaitis commented Jan 19, 2015

Hi, I am trying to use your class as the background of the child/content view controller of a UIPageViewController. The problem I am having is that with every new page generated the memory goes up, and up. (from what I understand the size of the image is added to the memory every time but never released). Do you think this might be a problem with your class or am I doing something wrong with the pageViewController?

Here is the code I am using

  • (void)viewDidLoad {
    [super viewDidLoad];

    //KEN BURNS

    NSString *filepath = [[NSBundle mainBundle]pathForResource:self.imageString ofType:@"png"];
    NSLog(@"Loading Ken View with image %@",filepath);

    self.kenView.frame = self.view.frame;

    [self.kenView animateWithImagePaths:@[filepath] transitionDuration:8 loop:YES isLandscape:YES] ;

}
-(void)viewWillDisappear:(BOOL)animated{
[self.kenView stopAnimation];
}

  • (void)viewDidDisappear:(BOOL)animated
    {

    [super viewDidDisappear:animated];
    [self setKenView:nil];
    }

I would really appreciate it if you can help me out!
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant