DetailsIPhone development memoImplementation example is the content to be introduced in this article, mainly to implementMemoLet's look at the content.
1. The path for adding the sqlite framework is as follows:
- /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/libsqlite3.dylib
2. iPhone development does not use xib files:
Modify the UIApplicationMain parameter in main. m
Java code
- UIApplicationMain (argc, argv, nil, @ "AppDelegate ");
- // AppDelegate your ApplicationDelegate
- AppDelegate:
- UIWindow * localWindow = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen] bounds];
- LocalWindow. backgroundColor = [UIColor whiteColor];
- Self. window = localWindow;
- [LocalWindow release];
- NavigationController = [[UINavigationController alloc] initWithRootViewController: [HomeViewController alloc] init];
- [Window addSubview: [navigationController view];
- [Window makeKeyAndVisible];
-
- UIApplicationMain (argc, argv, nil, @ "AppDelegate ");
- // AppDelegate your ApplicationDelegate
- AppDelegate:
-
- UIWindow * localWindow = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen] bounds];
- LocalWindow. backgroundColor = [UIColor whiteColor];
- Self. window = localWindow;
- [LocalWindow release];
-
- NavigationController = [[UINavigationController alloc] initWithRootViewController: [HomeViewController alloc] init];
- [Window addSubview: [navigationController view];
- [Window makeKeyAndVisible];
3. SQLITE table creation statement
Java code
- CREATE TABLE accountbook(id integer primary key autoincrement,
- price number,
- costtime date,
- categorycode varchar(2),
- categoryname varchar(20),
- year varchar(4),
- month varchar(2),
- day varchar(2));
-
- CREATE TABLE accountbook(id integer primary key autoincrement,
- price number,
- costtime date,
- categorycode varchar(2),
- categoryname varchar(20),
- year varchar(4),
- month varchar(2),
- day varchar(2));
4. Force Process Termination in linux/MAC
Ps-ef // view the process number
Kill-9 process no. // force end
5. Set the iphone to start the landscape screen.
Add UIInterfaceOrientation to Info. plist.
Just give UIInterfaceOrientationLandscapeRight.
6. Color UIProgressView
Summary: DetailsIPhone development memoThe implementation of the instance is complete. I hope this article will help you!