我试图让travis-ci继续我的angular2项目,它使用npm来安装打字,但是travis-ci在打字安装上失败了。
错误
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
// NSLog(@"DEBUG: Touches moved" );
[super touchesMoved:touches withEvent:event];
if ([[event allTouches] count] > 1) {
} else {
UITouch *touch = [[event allTouches] anyObject];
UIView *view = touch.view;
NSLog(@"DEBUG: Touches Moved");
CGPoint location = [touch locationInView:self.bgView];
for (UIView *subview in _bgView.subviews)
{
if (CGRectContainsPoint(subview.frame, location) && subview.tag > 0) {
NSLog(@"Point x:%.2f y:%.2f TAG:%i", location.x, location.y, subview.tag);
UIView *point = [[UIView alloc] initWithFrame:CGRectMake(location.x - 2.5, location.y - 2.5, 5, 5)];
point.backgroundColor = [UIColor redColor];
[_bgView addSubview:point];
}
}
}
}