Posts

Post not yet marked as solved
4 Replies
1.1k Views
I have a question about the UICollectionView Delegate below. (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath; In my APP, we used UICollectionView and we have implemented the above delegate method. until iOS13, it works well, the delegate method only be called when user select one cell, but from iOS 14.2, we found that sometime this delegate method will be called even user not selected any cell. Is there any change for this delegate method since iOS 14.2?
Posted
by shuailu.
Last updated
.
Post not yet marked as solved
4 Replies
1.1k Views
Hi, my app is a AR app to play h.264 video.We created SKVideoNode by AVPlayer and set the SKVideoNode to SKScene, and then create SCNNode to involve this SKScene.- Sample Code AVPlayer *avPlayer = [self getMoviePlayer:path]; SKVideoNode *videoNode = [[SKVideoNode alloc]initWithAVPlayer: avPlayer]; CGSize videoSize = CGSizeMake(100, 50); videoNode.size = videoSize; videoNode.position = CGPointMake(50, 50); videoNode.yScale = -1.0; SKScene *skScene = [[SKScene alloc] initWithSize:videoSize]; skScene.scaleMode = SKSceneScaleModeAspectFit; [skScene addChild:videoNode]; SCNNode *planeNode = [[SCNNode alloc] init]; planeNode.geometry = [[SCNPlane alloc] init]; SCNMaterial *material; material = [[SCNMaterial alloc] init]; material.diffuse.contents = skScene; planeNode.geometry.firstMaterial = material;We use this SCNNode to play videos.it works fine until iOS12.4 but when I test it on iOS13-beta device, it shows black screen while sound is heard.
Posted
by shuailu.
Last updated
.
Post not yet marked as solved
0 Replies
564 Views
Hi, my app is a AR app to play h.264 video.We created SKVideoNode by AVPlayer and set the SKVideoNode to SKScene, and then create SCNNode to involve this SKScene.Sample Code AVPlayer *avPlayer = [self getMoviePlayer:path]; SKVideoNode *videoNode = [[SKVideoNode alloc]initWithAVPlayer: avPlayer]; CGSize videoSize = CGSizeMake(100, 50); videoNode.size = videoSize; videoNode.position = CGPointMake(50, 50); videoNode.yScale = -1.0; SKScene *skScene = [[SKScene alloc] initWithSize:videoSize]; skScene.scaleMode = SKSceneScaleModeAspectFit; [skScene addChild:videoNode]; SCNNode *planeNode = [[SCNNode alloc] init]; planeNode.geometry = [[SCNPlane alloc] init]; SCNMaterial *material; material = [[SCNMaterial alloc] init]; material.diffuse.contents = skScene; planeNode.geometry.firstMaterial = material;We use this SCNNode to play videos.it works fine until iOS12.4 but when I test it on iOS13-beta device, it shows black screen while sound is heard.
Posted
by shuailu.
Last updated
.