Try the search, it's linked to some great forums

Monday, December 29, 2014

Keyboard configuration

The following will hide a keyboard nicely;

// Hides a keyboard by use of an invisible button on view
// configure UIButton - Custom, no title & size over touch area
-(IBAction)hideButton:(UIButton *)sender
{
    NSLog(@"Hides the keyboard");
    [self.view endEditing:YES];
}

Here's another way that's less of a cludge; 
 It sets up a gesture for the view

1- Set the .h file to <UIGestureRecognizerDelegate>

2 - Add this to the viewDidLoad to set up the gestureRecognizer
// Tap to hide keyboard
    UITapGestureRecognizer *hideKeyboardTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideTap:)];
    [self.view addGestureRecognizer:hideKeyboardTap];

Probably the BEST way;
1 - Don't forget to set the class as a UITextFieldDelegate
2- Add to viewDidLoad for all textFields - self.textField.delegate = self;
3 - And finally the delegate method
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}



3 - Add this method
- (void)hideTap:(UIGestureRecognizer *)gestureRecognizer
{
    [self.view endEditing:YES];
    NSLog(@"Hides the keyboard");
}

Thursday, September 11, 2014

RaceTracker playback

A few quick instructions & tips for playback of your race in Google Earth


This is the TimeLine control that displays in the upper left hand corner of the earth view.

 This control can be used to set a viewpoint and run, pause, fast forward, etc thru the race.
It sucks!



This is the Tour control that displays in the lower left hand corner of the earth view, and it's the way to go.

This control is used to control a following viewpoint of any specific boat in the fleet.  To use this, you:
  • Expand the race's folder to view the individual race tracks
  • Select a track
  • Click on the track button on the bottom of the screen to display the control
  •  
  •  
  •  

  • Used the buttons on the left to start, fast forward etc
  • Play around with it.
Use this GoogleEarth-Preferences-Touring popup to give yourself the view perspective you like.

 The Camera Tilt Angle (degrees from vertical down) and Camera Range (meters from the selected track) are the values to tweek.

Have fun.