Android
- onCreate
- onStart
- onResume
- onPause
- onStop
- onDestroy
- onLowMemory
iPhone
- loadView
- viewDidLoad
- viewWillAppear
- viewDidAppear
- viewWillDisappear
- viewDidDisappear
- didReceiveMemoryWarning
Development blog discussing configuring, building, and managing software. Including coverage of Debian Linux, .NET development projects, Perl and development tools
// Building the string ourself NSString *query = [NSString stringWithFormat:@"insert into user values ('%@', %d)", @"brandontreb", 25]; [database executeUpdate:query]; // Let fmdb do the work [database executeUpdate:@"insert into user(name, age) values(?,?)", @"cruffenach",[NSNumber numberWithInt:25],nil];
[database executeUpdate:@"delete from user where age = 25"];
@property(nonatomic) BOOL *isSomethingEnabled;
#import "ViewControllerB.h"
ViewControllerB *viewControllerB = [[ViewControllerB alloc] initWithNib=@"ViewControllerB" bundle=nil];
viewControllerB.isSomethingEnabled = YES;
[self pushViewController:viewControllerB animated:YES];
// locally store the navigation controller since
// self.navigationController will be nil once we are popped
UINavigationController *navController = self.navigationController;
// retain ourselves so that the controller will still exist once it's popped off
[[self retain] autorelease];
// Pop this controller and replace with another
[navController popViewControllerAnimated:NO];
[navController pushViewController:someViewController animated:NO];