Images.xcassets中的图片
1、打包后图片会被压缩到asset.car文件中
2、不能用imagesWithContentsOfFile来加载
3、imageNamed方法,不需要写后缀名
直接拖拽的图片
1、打包后,图片被放入到mainBundle中
2、如果是png不需要写后缀名,jpg需要
3、如果StoryBoard中的UIImageView需要写后缀名
1、打包后图片会被压缩到asset.car文件中
2、不能用imagesWithContentsOfFile来加载
3、imageNamed方法,不需要写后缀名
1、打包后,图片被放入到mainBundle中
2、如果是png不需要写后缀名,jpg需要
3、如果StoryBoard中的UIImageView需要写后缀名