English 中文(简体)
文件属性是为了防止在5.0.1中提取数据?
原标题:File attribute to prevent purging of data in iOS 5.0.1?

WIth 5.0.1 采用了新的档案特征,以防止数据得到支持,但我记得,我在某些地方看到,还可以树立新的旗帜,防止数据表格在低记忆情况下被篡改。 是否有任何人知道?

I know this article here: https://developer.apple.com/library/ios/#qa/qa1719/_index.html#//apple_ref/doc/uid/DTS40011342 But it is dealing with backup flags only and states that files that should not be purged should be placed in the document s folder. I know all that but I m looking specifically for a way to prevent data from being purged that is NOT in the documents folder.

最佳回答

如该条款所述,仅将自己的数据储存在<代码><Application_Home>/Library/Private Documents。 它从那里获得了 t,然后可以树立起不退的旗帜。

问题回答

你们正在莫诺托库寻找这些方法。 Foundation.NSFileManager:

public static bool GetSkipBackupAttribute (string filename);
public static bool GetSkipBackupAttribute (string filename, out NSError error);
public static NSError SetSkipBackupAttribute (string filename, bool skipBackup);




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签