小编kis*_*ani的帖子

如何在不注册Apple开发人员计划的情况下使用Xcode 8在Real设备上运行应用程序?

在xcode 7的早期版本中,我们可以通过在xcode帐户中添加apple id然后选择团队来在真实设备上运行我们的应用程序.

但是现在发布的xcode 8 beta 2,没有"修复问题"按钮,而是"自动管理签名"可用.

它给出了以下错误. Xcode签名错误

我想为此获得解决方案.所以,如果有人解决了这个问题,请帮助我.

ios xcode8-beta2

13
推荐指数
1
解决办法
2万
查看次数

如何在ios中将AVPlayer缓冲区设置为空

我在我的应用程序中使用AVPlayer播放视频.

在我的应用程序中,我添加了播放下一个/上一个视频的功能,所以如何设置空缓冲区.

所以,如果有人有解决方案可以帮助我.

objective-c ios avplayer avplayeritem avplayerviewcontroller

5
推荐指数
1
解决办法
1151
查看次数

CGContextClearRect在目标c中的touchesMoved事件中无法正常工作

我使用这个代码,它部分工作,但图像没有正确 输出这样的输出

-(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)

image-processing objective-c cgcontext cgpoint

5
推荐指数
1
解决办法
137
查看次数