undefined
undefined

멀티뷰에서 드래그

CookBook - sample 소스 참조 ========================== #import <UIKit/UIKit.h>#include "time.h" //@class UIImageView; @interface DragView : UIImageView{ CGPoint startLocation;}@end @implementation DragView - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ CGPoint pt = [[touches anyObject] locationInView:self]; startLocation = pt; [[self superview] bringSubviewToFront:self]; }- (void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ CGPoint pt = [[touches anyObject] locationInView:self]; CGRect frame = [self frame]; frame.origin.x += pt.x - startLocation.x; frame.origin.y += pt.y - startLocation.y; [self setFrame:frame]; }@end//end of implementation @interface HelloController ...