[英]How to resolve 'could not initialize an instance of the type uikit.uiimage : The native initwith contentsofFile' errors in icons tabbed page
I am very struggle to fix this strange issue. 我很难解决这个奇怪的问题。 In my application using tabbed page with icons but when try to build getting exception. 在我的应用程序中,使用带有图标的选项卡式页面,但是尝试构建异常时。 From last three months it's working fine. 从最近三个月开始,一切正常。 last day on wards it's getting build issue. 在病房的最后一天,它出现了构建问题。 please suggest any idea to fix this. 请提出任何解决方案。 Thanks in advance. 提前致谢。
1) Check that build action for icon is set to Bundle Resource 1)检查图标的构建操作是否设置为捆绑资源
2) Check the file name. 2)检查文件名。 If it contains capital letters, remove the file from the project, rename to lowercase and then add again. 如果包含大写字母,请从项目中删除文件,重命名为小写,然后再次添加。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.