已安装的应用程序大小与 Appstore 应用程序大小 [英] Installed App Sizes Vs Appstore app sizes

查看:53
本文介绍了已安装的应用程序大小与 Appstore 应用程序大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个一直困扰着我的问题.前几天我检查了我妻子的手机,pinterest 应用程序占用了 2 GB 的空间,而应用程序商店中的实际应用程序是 26.8 MB.我知道必须有用户/日志/崩溃数据转储到其应用程序文档目录中,但这让我想到,与 appstore 中的应用程序大小相比,她手机上有多少其他应用程序存储了大量用户数据.

Here is a question that had been bothering me. The other day I checked my wife's phone and pinterest app was eating up 2 GB of space while the actual app in the appstore is 26.8 MB. I know there must be user / log / crash data that is dumped in its apps document directory but that got me thinking how many other apps on her phone had large amount of user data stored compared to what the app size is in appstore.

这里是我关于如何使用objectiveC完成所有这些的问题

So here are my questions of how to do all this using objectiveC

  1. 示例 Xcode iHasApp 显示设备上安装的所有可用应用.有没有办法检查他们在 GB/MB 等中占用了多少空间?

  1. Sample Xcode iHasApp display's all the available apps installed on a device. Is there a way I check how much space they are taking in GB/MB etc?

有什么方法可以让我在 appstore 中查询该应用程序的构建大小并告诉用户它在 appstore 中只有 X MB 吗?

Is there a way I can go query that app build size in appstore and tell the user hey its only X MB in appstore?

我知道我可以访问设备上安装的所有应用程序,有什么方法可以检查用户上次启动或使用应用程序的时间吗?

I know I can get to all the app installed on a device is there a way I can check when was an app last launched or used by a user?

我可以查看照片/视频和音乐占用了多少空间吗?

Can I check how much space photo / video and music is taking up?

我最终想要做的是看看我是否可以制作一个应用程序,向用户展示他们在他们的设备上安装了什么并自己做出一些明智的决定.

What I am trying do in the end is to see if I can make an app that shows user what they got installed on their device and make some informed decisions themselves.

到目前为止,我能找到的只是如何检查设备上的总已用空间和可用空间,并获取所有已安装应用程序的列表.

So far all I am able to find is how to check total used and free space on a device and get a list of all apps installed.

推荐答案

示例 Xcode iHasApp 显示设备上安装的所有可用应用程序.有没有办法检查他们在 GB/MB 等中占用了多少空间?

Sample Xcode iHasApp display's all the available apps installed on a device. Is there a way I check how much space they are taking in GB/MB etc?

没有.iHasApp 使用的 API 只能用于检查选定的应用程序是否存在 - 基本上,您可以询问是否安装了 ThisApp?",并且您可以构建部分已安装列表通过运行该检查来检查大量常见应用程序.

No. The APIs being used by iHasApp can only be used to check whether selected applications are present -- basically, all you get to ask "is ThisApp installed?", and you can build up a partial list of installed applications by running that check for a large number of common applications.

无法获取其他应用程序的启动或磁盘使用信息.我不确定设备是否会跟踪上次启动.

There is no way to get launch or disk usage information for other applications. I'm not sure last launch is even tracked at all by the device.

考虑到这一点,您的大多数其他问题都无关紧要.无法从 iOS 应用程序中执行您想要的操作.

With this in mind, most of your other questions are irrelevant. It is not possible to do what you're after from an iOS application.

这篇关于已安装的应用程序大小与 Appstore 应用程序大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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