Wednesday, June 29, 2011

Touch (XY) detection in iPhone

- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
    startTime = [NSDate timeIntervalSinceReferenceDate];
     pt = [[touches anyObject] locationInView:self.view];
    NSLog(@"%d,%d x y",pt.x,pt.y);
  }

No comments:

Swift Operators - Basic Part 3 (Range operators in swift)

Range Operators: Closed Range operators  Half-Open Range Operators One-Sided Ranges Closed Range Operators:  a...b It defines...