如何在窗口中拖动对象时增加窗口大小,使用卡布奇诺。这是我的示例代码:
if(dragLocation.x < 1000.0 && dragLocation.y < 600.0) {
//drag is within the drawable area
[self setFrameOrigin:CGPointMake(dragLocation.x, dragLocation.y)];
dragLocation = location;
}
else {
//object is dragged out of window
// the window has to be resized now
//how????
}
问题就像,当我将一个对象拖出窗口时,它正在消失。我希望通过放大窗口来显示它。我怎么能在卡布奇诺中做到这一点。任何的意见都将会有帮助。提前致谢。