LongPress의 down과 up만 체크



 UILongPressGestureRecognizer *longPressGesture =

        [[UILongPressGestureRecognizer allocinitWithTarget:self

                                                action:@selector(handleLongPress:)];


          


[targetView addGestureRecognizer:longPressGesture];



.....


// Handler

- (void)handleLongPress:(UILongPressGestureRecognizer *)recognizer {

    CGPoint location = [recognizer locationInView:[recognizer.view superview]];

    

    if (recognizer.state == UIGestureRecognizerStateBegan) {

        NSLog(@" long press start ... ");

    }else if(recognizer.state == UIGestureRecognizerStateEnded){

        NSLog(@" long press ended ... ");


    }

      

}



Posted by tenn
,

[obj-c] UIScrollView

iPhone 2012. 11. 21. 14:20





http://greenalice.tistory.com/225








UIScrollView에서의 touch 핸들링


http://blog.naver.com/PostView.nhn?blogId=sinaeyo&logNo=30093493220

Posted by tenn
,

[obj-c] NSArray

iPhone 2012. 11. 21. 09:59



NSArray 초기화


 NSArray * array = [NSArray arrayWithObjects:obj1, obj2, obj3, nil]; 

Posted by tenn
,