01-Attribute list using-sqlite

Source: Internet
Author: User
Tags sqlite sqlite database

1 //2 //VIEWCONTROLLER.M3 //01-Attribute list Use4 //5 //Created by Mac on 01/1/3.6 //copyright©2001 Year Mac. All rights reserved.7 //8 9 /**Ten  One table: A complete data sheet for recording data A field: An element in a data table or a piece of data that can be understood - data: A specific piece of data stored in a database -   the  */ - //////////////////////////////////////////////////////////////////////////// - /** - * Persistence of data +  * - * Database: Databases +   A * Oracle (commonly used in Java), MSSQLSERVER,DB2, MySQL (open source free, for small data volume) at   - * Apache: Server Software -   -   - * Client----Server (Network database access)-------1. To establish a connection 2. Start Operation 3. Get results 4. Close the connection------database -  in * * iOS development is generally as follows: - Local Database Access:sqlite-<----->-Client to   + * @param 1. Property List - * @return 2. Object Archive the * 3. SQLite database * * 4. CoreData $  */Panax Notoginseng #import "ViewController.h" -  the @interfaceViewcontroller () +  A @end the  + @implementationViewcontroller -  $- (void) Viewdidload { $ [Super Viewdidload]; -      -  the[Self Savevalue:@"1234"Forkey:@"Password"]; -     WuyiNSLog (@"==%@", [Self Readvalueforkey:@"Password"]); the      -NSLog (@"===%@", Nshomedirectory ()); Wu } -  About- (void) Savevalue: (ID) Password Forkey: (NSString *) Username { $      -     //The system's configuration local persistence class is used to store some simple user configurations -Nsuserdefaults *user =[Nsuserdefaults standarduserdefaults]; -     //nsuserdefaults *userdefaults = [[Nsuserdefaults alloc] init]; A      + [user Setobject:password forkey:username]; the } -  $-(Instancetype) Readvalueforkey: (NSString *) Username { the      theNsuserdefaults *user =[Nsuserdefaults standarduserdefaults]; the      the     return[user Objectforkey:username]; - } in  the @end

01-Attribute list using-sqlite

Related Article

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.