You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
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
The text was updated successfully, but these errors were encountered: