目录
NSURL *fileUrl = [[NSBundle mainBundle] URLForResource:@"test" withExtension:@"png"]; NSData *imageData = [NSData dataWithContentsOfURL:fileUrl];