iphone - GPUImageView disappears on Storyboard -
i've been working on live video app gpuimage.
i have storyboard, have set class of view gpuimageview
.
in viewcontroller.m file, in viewdidload(), making main view such:
cgrect mainscreenframe = [[uiscreen mainscreen] applicationframe]; uiview *primaryview = [[uiview alloc] initwithframe:mainscreenframe]; self.view = primaryview;
then making 3 subviews
highlightview = [[gpuimageview alloc] initwithframe:cgrectmake(0.0, 0.0, mainscreenframe.size.width, mainscreenframe.size.height)]; shadowview = [[gpuimageview alloc] initwithframe:cgrectmake(0.0, 0.0, mainscreenframe.size.width, mainscreenframe.size.height)]; midview = [[gpuimageview alloc] initwithframe:cgrectmake(0.0, 0.0, mainscreenframe.size.width, mainscreenframe.size.height)];
then add them main view
[self.view addsubview:midview]; [self.view addsubview:shadowview]; [self.view addsubview:highlightview];
there's bunch of filter chaining, loading images, etc in there too, think relevant part...
anyways, behaviour experiencing view flashes onscreen once frame, right around when end of method call happens, goes black... , i'm not sure how troubleshoot this.
i had code working .xib file earlier, various reasons need working on storyboard project... hints appreciated!
Comments
Post a Comment