1.基本数据
NSInteger a = 23;//整型
NSUInteger b = 34;//不定整型
CGFloat score = 111.1;//实型
BOOL a = YES;//布尔型
2.字符串
NSString *string = @"char";
NSString *string1 = @"is";
3.数组
NSArray *array = @[@1,@2,@3];
4.字典
NSDictionary *dictionary = @{@"name":@"gay",@"age":@12};
5.URL
NSURL *url = @"http://www.baidu.com";
6.二进制数据
NSData *data = [NSData dateWithURL url];//将url转换为二进制数据
7.时间类型
NSDate *date =[NSDate date];//获取的是当前时间数据