我可以在iOS中从捆绑资源或框架中隐藏图像吗 [英] Can I Hide images from bundle resource or framework in iOS

查看:65
本文介绍了我可以在iOS中从捆绑资源或框架中隐藏图像吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目转换为框架,还有一个捆绑资源,其中包含许多图像和情节提要.一切正常.我的问题是我可以隐藏或保护这些图像以免在捆绑包资源中被替换吗?我只想访问某些图像,其余的我想隐藏它.是否有可能?

I have a project converted to a framework, and a bundle resource which has many images and storyboard. Everything works perfectly fine. My question is can I hide or protect these images from being replaced in the bundle resource? I want to give access to only some images, rest of them i want to hide it. is it possible?

推荐答案

您可以将图像转换为NSData,对其进行加密和压缩.您还可以将其转换为base 64,对其进行加密等.

You can convert image to NSData, encrypt, compress it. You can also convert it to base 64, encrypt it, etc.

这篇关于我可以在iOS中从捆绑资源或框架中隐藏图像吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆