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:

Create a list in SwiftUI with sticky section headers

 Sample Code import SwiftUI struct ContentView : View {     @State var isCustomViewControllerDisplayed = false     @State private va...