IOS-->Empty Application
文件夹分层:
supporting files
frameworks
入口类
类创建
基本数据类型
方法创建
入口类:AppDelegate.h AppDelegate.m
类创建:类的创建步骤 构成类的元素
基本数据类型:
char
short
int 、long 、float
double 、 long long
BOOL
方法的创建
-(void) age;
//People.h
#import <Foundation/Foundation.h>
@interface People:NSLog
{//成员变量
int age;
double weight;
}
@property int age;
@property double weight:(double)weight;
@end
//People.m
#import "People.h"
@implementation People
-(void) age{
age++;
NSLog("%d",age);
}
-(void) weight:(double)weight{
NSLog("%lf",weight);
}
@end
//AppDelegate.m
#import
-.5(void) application