The Contents.json describing the image set "BG_Email_Textfield.imageset" must start with a top level
来源:互联网 发布:蓝格眼镜软件 编辑:程序博客网 时间:2024/05/17 23:37
If you use Xcode to add a single image to your project as an image set, Xcode creates a subdirectory containing two files- the image and a Contents.json file. You can see this in Finder. In your Xcode project directory open Images.xcassets. For example Images.xcassets could have a subdirectory myImage.imageset with myImage.png and a Contents.json similar to
{ "images" : [ { "idiom" : "universal", "scale" : "1x", "filename" : "myImage.png" }, { "idiom" : "universal", "scale" : "2x" } ], "info" : { "version" : 1, "author" : "xcode" }}
You can specify another image for 2x resolution. If your project does not contain a directory and Contents.json file similar to this, it may be easiest to use Xcode to add the image set. In Xcode project navigator, if you select Images.xcassets a pane appears with a small "+" at the bottom to "add a group or image set".
References
https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/AddingImageSets/AddingImageSets.html
https://www.iphonelife.com/blog/31369/unleash-your-inner-app-developer-managing-images-xcode-5-asset-catalogs
- The Contents.json describing the image set "BG_Email_Textfield.imageset" must start with a top level
- The Contents.json describing the "AppIcon.appiconset" is not valid JSON.
- 报错:The resource name must start with a letter
- The resource name must start with a letter
- Could not load the "start.png" image referenced from a nib in the bundle with identifier
- Accessing the contents of a KVM disk image file
- json 解析 A JSONArray text must start with '['
- Could not load the "start.png" image referenced from a nib in the bundle with identifier "com.yourco
- The executeQuery method must return a result set
- Describing a ref cursor using the DBMS_SQL API
- httpclient domain must start with a dot
- urls must start with a leading slash
- Exception in thread "main" net.sf.json.JSONException: A JSONArray text must start with '[' at charac
- PAT (Top Level) Practise1019Separate the Animals (35)
- The member enum Constants2 can only be defined inside a top-level class放置位置不对
- The function default must be used with a prefix when a default namespace is not specified
- The function getXX must be used with a prefix when a default namespace is not specified
- The function size must be used with a prefix when a default namespace is not specified
- spring集成httpclient调用远端接口
- pip命令报错 Bad md5 hash for package xxx
- 计算hashCode的常见方法
- xamarin.ios 录音并播放
- html中的checkbox复选框不确定状态的设置
- The Contents.json describing the image set "BG_Email_Textfield.imageset" must start with a top level
- 面试题43:n个骰子的点数
- java练习
- linux常用命令----查看日志和系统资源占用
- SoundTouch音频处理库源码分析及算法提取(7)
- 程序员能力矩阵 — 敢测吗?看自己在哪个档次
- 小胖说事6------iOS setNeedsDisplay和setNeedsLayout的用法
- 如何理解单例模型
- 有限状态机在C语言编程中的各种应用