iOS-数据库-ViewController.m 调用- 数据库附件(1)

iOS-数据库-Student类-附件(2)
iOS-数据库-Student类-附件(2)

iOS-数据库-Student类-附件(2)

//
// Student.h
// UI17_数据库
//
// Created by YIem on 16/3/3.
// Copyright © 2016年 YIem. All rights reserved.
//

import <Foundation/Foundation.h>

@interface Student : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *sex;
@property (nonatomic, assign) NSInteger age;
@end


//
// Student.m
// UI17_数据库
//
// Created by YIem on 16/3/3.
// Copyright © 2016年 YIem. All rights reserved.
//

import "Student.h"

@implementation Student

  • (void)dealloc
    {

    [_name release];
    [_sex release];
    [super dealloc];

    }

  • (void)setValue:(id)value forUndefinedKey:(NSString *)key
    {

    }

@end