Q: How to vertically centre-align the text in textField?
A: [textField setContentVerticalAlignment:UIControlContentVerticalAlignmentCenter];
Q: How to make a dialogue window (i.e. add textFields) with AlertView?
UIAlertView *describeWP = [[UIAlertView alloc] initWithTitle:@"Add a Waypoint" message:@"\n\n\n\n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Done", nil];
UITextField *wpName = [[UITextField alloc] initWithFrame:CGRectMake(42, 45, 188, 25)];
[wpName setBackgroundColor:[UIColor whiteColor]];
[wpName setPlaceholder:@"Name your waypoint"];
UITextField *wpDescrip = [[UITextField alloc] initWithFrame:CGRectMake(12, 80, 260, 55)];
[wpDescrip setBackgroundColor:[UIColor whiteColor]];
[wpDescrip setPlaceholder:@"Talk about it, e.g. tips, feeling, why excited ..."];
CGAffineTransform moveUp = CGAffineTransformMakeTranslation(0, 90);
Q: Error: “missing required architecture i386 in file” for each framework.
A: Delete the following line from the project.pbxproj file:
FRAMEWORK_SEARCH_PATHS = ("$(inherited)", "\"$(DEVELOPER_DIR)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/System/Library/Frameworks\"", );
Q: How to detect the zooming level after the user finger-changed it and let the map keep the level?
Q: When using mapView.showsUserLocation=YES; the error says:
[MKUserLocation annotationType]: unrecognized selector sent to instance
… What is wrong?
A: Put the line:
if ([annotation isKindOfClass:MKUserLocation.class]) return nil; in the MKAnnotationView method, then it is fine.
Target: save tracks from GPS receiver in the iPhone -> save as a KML or KMZ file -> sent to a desktop with Google Earth -> tracks in KML can be send from desktop to iPhone and show in Googe earth 3-D view.
Distributed Objects (DO): using DO restricts on cocoa.
Cocoa stream programming: if you want to code your own protocol.
I will keep posting good resources for Iphone application developers:
multi-line with different fonts in UITableViewCell
http://www.shrinkrays.net/articles/monotouch-controllers-by-example/uitableviewcontroller-by-example.aspx : with advanced options
http://osmorphis.blogspot.com/2009/04/putting-button-in-table.html : for buttons without the button shape, cell-based button
Apple allows its iPhone to multi-task from this summer with its release of iPhone OS 4, and the platform will also allow developers to put adverts in their applications, and receive 60% revenue! See here for more details.
Chrono forms: http://www.chronoengine.com/tutorials/chronoforms-j15-tutorials.html
I have worked out how to save field data from Chrono forms for event registration into a spreadsheet, with the help of this link.
EveryTrail for the moment is the best iPhone application for tracking and recording route so far, in my experience.
Feel free to put comment on, about other Location relevant iPhone or web applications.
I am going to translate the talk below (what attract me are the idea of capturing how people feel, look for, and do things):