在xcode 7的早期版本中,我们可以通过在xcode帐户中添加apple id然后选择团队来在真实设备上运行我们的应用程序.
但是现在发布的xcode 8 beta 2,没有"修复问题"按钮,而是"自动管理签名"可用.
我想为此获得解决方案.所以,如果有人解决了这个问题,请帮助我.
我在我的应用程序中使用AVPlayer播放视频.
在我的应用程序中,我添加了播放下一个/上一个视频的功能,所以如何设置空缓冲区.
所以,如果有人有解决方案可以帮助我.
objective-c ios avplayer avplayeritem avplayerviewcontroller
我使用这个代码,它部分工作,但图像没有正确 输出这样的输出
-(void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
UITouch *touch = [touches anyObject];
CGPoint currentPoint = [touch locationInView:_img.superview];
UIGraphicsBeginImageContext(self.img.frame.size);
[_img.image drawInRect:CGRectMake(0, 0, _img.frame.size.width, _img.frame.size.height)];
CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
CGContextSetLineWidth(UIGraphicsGetCurrentContext(), 10);
CGContextBeginPath(UIGraphicsGetCurrentContext());
CGContextClearRect (UIGraphicsGetCurrentContext(), CGRectMake(currentPoint.x, currentPoint.y, 15, 15));
CGContextStrokePath(UIGraphicsGetCurrentContext());
_img.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
}
Run Code Online (Sandbox Code Playgroud)