Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道以前有人问过这个问题,但有谁知道是否可以为最新的 iphone OS iOS4.2 (beta)以编程方式设置主屏幕(壁纸)的背景图像。我知道以前不可能。
我已经看到您可以通过写入 /var/mobile/Library/LockBackground.jpg 来更改越狱手机上的锁定屏幕,您可以为主屏幕壁纸做同样的事情吗?
跟进:正如评论者指出的那样,iOS 4.2 处于 NDA 之下,所以我将问题改写为 4.1?
不,你确定它在 /var/mobile/Library 中吗???当我做
NSArray *test = [[NSFileManager defaultManager] directoryContentsAtPath:@"/var/mobile/Library/"];
我没有得到 LockBackground.jpg 文件。此外,您不能写入 /var/mobile/Library(使用writeToFile:atomically:)
writeToFile:atomically:
注意:我在 4.1 下执行此操作