[크리스마스 이벤트] 내가 산타다! - 원하는 선물 그대로 드립니다! (~12/25)





이제 12월! 크리스마스가 다가옵니다!

AK몰이 여러분들에게 선물을 쏩니다!


AK몰에서 갖고 싶은 선물을 마음대로 골라서 이 게시판에 올려주세요~

횟수는 상관 없습니다!


추첨을 통해, 1분께 그 선물 그대로 드립니다!

3분께는 선물사는데 보태시라고 적립금 5만원을 드립니다!

그리고, 100분께는 적립금 3천원씩을 드립니다!!!



하지만, 필수 조건이 있습니다!


글을 올리실 때, 반드시


1. AK몰 ID는 필수!

2. 이 포스팅을 스크랩한 URL 명기는 필수!

(개인 블로그도 좋고, 카페도 좋고, 

자주가는 사이트에 이 소식을 알려주시고 그  게시글 URL을 남겨주셔도 무방합니다^^)

3. AK몰에서 갖고 싶은 상품! 사진과 함께 그 이유도 남겨주세요!





셋 중에 어떤 것이라도 없을 때는 자동으로 당첨에서 제외된다는 거 명심해주세욧!


※ 이 글에 대한 덧글 응모가 아니라, 이 게시판에 새글로 작성해주셔야 합니다!!!


감사합니다!
 
 
 
 
ps 권력의 핵심은 바로 이 분!
 


산타 할아버지의 자기소개를 꼭 보셔야 당첨 확률이 높습니닷!

      
Posted by k_ben


CGContextRef context = UIGraphicsGetCurrentContext();

[UIView beginAnimations:nil context:context];

[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

[UIView setAnimationDuration:1.0];


UIView *whiteBackdrop = self.pageView;


NSArray *array = [self.pageView subviews];


// Choose up or down curl


[UIView setAnimationTransitionUIViewAnimationTransitionCurlUp forView:whiteBackdrop cache:YES];


for (int i=1; i<[array count]; i++)

{

    [whiteBackdrop exchangeSubviewAtIndex:[array count]-i withSubviewAtIndex:[array count]-i-1];

}

[UIView setAnimationDelegate:self];


[UIView commitAnimations];

'컴퓨터 > 아이폰' 카테고리의 다른 글

파일 관련 자료  (0) 2012.01.18
sqlite에 관한거..  (0) 2012.01.17
Gesture 인식 샘플  (0) 2011.12.15
현재화면 캡쳐하기  (0) 2011.12.15
String -> MD5(암호) 변환 샘플  (0) 2011.12.15
      
Posted by k_ben


- (void) touchesBegan:(NSSet *) touches withEvent: (UIEvent *) event
- (void) touchesMoved:(NSSet *) touches withEvent: (UIEvent *) event
- (void) touchesEnded:(NSSet *) touches withEvent: (UIEvent *) event
을 이용하여 인식을 한다.




- (void) touchesBegan:(NSSet *) touches withEvent: (UIEvent *) event

{

finished = NO;

startPoint = [[touches anyObjectlocationInView:self.view];

multitouch = (touches.count > 1);

pointCount = 1;

}


- (void) touchesMoved:(NSSet *) touches withEvent: (UIEvent *) event

{

pointCount++;

if (finishedreturn;

// Handle multitouch

if (touches.count > 1)

{

// get touches

UITouch *touch1 = [[touches allObjectsobjectAtIndex:0];

UITouch *touch2 = [[touches allObjectsobjectAtIndex:1];

// find current and previous points

CGPoint cpoint1 = [touch1 locationInView:self.view];

CGPoint ppoint1 = [touch1 previousLocationInView:self.view];

CGPoint cpoint2 = [touch2 locationInView:self.view];

CGPoint ppoint2 = [touch2 previousLocationInView:self.view];

// calculate distances between the points

CGFloat cdist = distance(cpoint1, cpoint2);

CGFloat pdist = distance(ppoint1, ppoint2);

multitouch = YES;

        

// The pinch has to exceed a minimum distance

if (ABS(cdist - pdist) < MIN_PINCHreturn;

if (cdist < pdist)

touchtype = UITouchPinchIn;

else

touchtype = UITouchPinchOut;

finished = YES;

return;

}

else 

{

// Check single touch for swipe

CGPoint cpoint = [[touches anyObjectlocationInView:self.view];

float dx = DX(cpoint, startPoint);

float dy = DY(cpoint, startPoint);

multitouch = NO;

        

finished = YES;

if ((dx > SWIPE_DRAG_MIN) && (ABS(dy) < DRAGLIMIT_MAX)) // hswipe left

touchtype = UITouchSwipeLeft;

else if ((-dx > SWIPE_DRAG_MIN) && (ABS(dy) < DRAGLIMIT_MAX)) // hswipe right

touchtype = UITouchSwipeRight;

else if ((dy > SWIPE_DRAG_MIN) && (ABS(dx) < DRAGLIMIT_MAX)) // vswipe up

touchtype = UITouchSwipeUp;

else if ((-dy > SWIPE_DRAG_MIN) && (ABS(dx) < DRAGLIMIT_MAX)) // vswipe down

touchtype = UITouchSwipeDown;

else

finished = NO;

}

}


- (void) touchesEnded:(NSSet *) touches withEvent: (UIEvent *) event

{

// was not detected as a swipe

if (!finished && !multitouch

{

// tap or double tap

if (pointCount < 3

{

if ([[touches anyObjecttapCount] == 1

touchtype = UITouchTap;

else

touchtype = UITouchDoubleTap;

}

else

touchtype = UITouchDrag;

}

// did points exceeded proper swipe?

if (finished && !multitouch

{

if (pointCount > POINT_TOLERANCEtouchtype = UITouchDrag;

}

// Is this properly a tap/double tap?

if (multitouch || (touches.count > 1))

{

// tolerance is *very* high

if (pointCount < 10)

{

if ([[touches anyObjecttapCount] == 1

touchtype = UITouchMultitouchTap;

else

touchtype = UITouchMultitouchDoubleTap;

}

}

NSString *whichItem = nil;

if (touchtype == UITouchUnknown) whichItem = @"Unknown";

else if (touchtype == UITouchTap) whichItem = @"Tap";

else if (touchtype == UITouchDoubleTap) whichItem = @"Double Tap";

else if (touchtype == UITouchDrag) whichItem = @"Drag";

else if (touchtype == UITouchMultitouchTap) whichItem = @"Multitouch Tap";

else if (touchtype == UITouchMultitouchDoubleTap) whichItem = @"Multitouch Double Tap";

else if (touchtype == UITouchSwipeLeft) whichItem = @"Swipe Left";

else if (touchtype == UITouchSwipeRight) whichItem = @"Swipe Right";

else if (touchtype == UITouchSwipeUp) whichItem = @"Swipe Up";

else if (touchtype == UITouchSwipeDown) whichItem = @"Swipe Down";

else if (touchtype == UITouchPinchIn) whichItem = @"Pinch In";

else if (touchtype == UITouchPinchOut) whichItem = @"Pinch Out";

    

//[self.vc performSelector:@selector(updateState:withPoints:) withObject:whichItem withObject:[NSNumber numberWithInt:pointCount]];

    

    [self performSelector:@selector(updateState:pointCount:) withObject:whichItem withObject:[NSNumber numberWithInt:pointCount]];

       


}


-(void)updateState:(NSString*)state pointCount:(NSNumber*)count

{

    NSString *outstring = [NSString stringWithFormat:@"state = %@, count = %d", state, [count intValue]];

UIAlertView *av = [[[UIAlertView allocinitWithTitle:@"Gestures" message:outstring delegate:nil cancelButtonTitle:@"확인" otherButtonTitles:nilautorelease];

[av show];

}

'컴퓨터 > 아이폰' 카테고리의 다른 글

sqlite에 관한거..  (0) 2012.01.17
페이지 넘기는 효과  (0) 2011.12.15
현재화면 캡쳐하기  (0) 2011.12.15
String -> MD5(암호) 변환 샘플  (0) 2011.12.15
아이폰에서 주소록 가져오기.  (0) 2011.12.15
      
Posted by k_ben