IPhone development memo implementation example

Source: Internet
Author: User

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:

 
 
  1. /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

 
 
  1. UIApplicationMain (argc, argv, nil, @ "AppDelegate ");
  2. // AppDelegate your ApplicationDelegate
  3. AppDelegate:
  4. UIWindow * localWindow = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen] bounds];
  5. LocalWindow. backgroundColor = [UIColor whiteColor];
  6. Self. window = localWindow;
  7. [LocalWindow release];
  8. NavigationController = [[UINavigationController alloc] initWithRootViewController: [HomeViewController alloc] init];
  9. [Window addSubview: [navigationController view];
  10. [Window makeKeyAndVisible];
  11.  
  12. UIApplicationMain (argc, argv, nil, @ "AppDelegate ");
  13. // AppDelegate your ApplicationDelegate
  14. AppDelegate:
  15.  
  16. UIWindow * localWindow = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen] bounds];
  17. LocalWindow. backgroundColor = [UIColor whiteColor];
  18. Self. window = localWindow;
  19. [LocalWindow release];
  20.  
  21. NavigationController = [[UINavigationController alloc] initWithRootViewController: [HomeViewController alloc] init];
  22. [Window addSubview: [navigationController view];
  23. [Window makeKeyAndVisible];

3. SQLITE table creation statement

Java code

 
 
  1. CREATE TABLE accountbook(id integer primary key autoincrement,     
  2. price number,     
  3. costtime date,     
  4. categorycode varchar(2),     
  5. categoryname varchar(20),     
  6. year varchar(4),     
  7. month varchar(2),     
  8. day varchar(2));    
  9.  
  10. CREATE TABLE accountbook(id integer primary key autoincrement,  
  11. price number,  
  12. costtime date,  
  13. categorycode varchar(2),  
  14. categoryname varchar(20),  
  15. year varchar(4),  
  16. month varchar(2),  
  17. 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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.