To fix:
- (CGRect) extConvertRect: (CGRect) rect toView: (UIView *) view{
if(rect.size.width == 0 || rect.size.height == 0){
CGPoint lt = [self convertPoint: rect.origin toView: view];
return CGRectMake(lt.x, lt.y, rect.size.width, rect.size.height);
}else{
return [self convertRect:rect toView: view];
}
}
No comments:
Post a Comment