现在的位置: 首页 > 综合 > 正文

ARC , event,UIScrillView

2018年09月10日 ⁄ 综合 ⁄ 共 545字 ⁄ 字号 评论关闭

怎么把  已建项目 取消ARC机制???

build setting-> Apple LLVM compiler Language-> Objective-C Automatic Reference Co..   设置为NO

//这里將整个UIView区域的事件都交给UIScrillView
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    if (CGRectContainsPoint(CGRectMake(0,80,320,320), point)) {
        
        return klpScrollView2;
    }
    return [self hitTest:point withEvent:event];
}

//这里將整个UIView区域的事件都交给UIScrillView
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    if (CGRectContainsPoint(CGRectMake(0,0,320,39), point)) {
        
        return scrollview;
    }
    return [super hitTest:point withEvent:event];
}

抱歉!评论已关闭.