English 中文(简体)
采用经解释的方法[复制]
原标题:Using deprecated methods [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
Will Apple accept Apps with deprecated code?

我正在开发一种手法,而且我正在使用这样一种方法:

- (NSString*)udid
{
    UIDevice* device = [UIDevice currentDevice];
    return [device.uniqueIdentifier stringByReplacingOccurrencesOfString:@"-" withString:@""];
}

但是,我已经看到,“uniqueIdentifier”被贬低。 如果我把自己的遗嘱放在仓库中,那么它会遇到什么事情(使用折旧方法)

感谢您的答复。

问题回答

一般来说,不使用假肢,因为它们可能从未来版本中删除。 此外,由于二者是过时的或不太乐观的,因此一般都会对二者作假,而且通常会有一个更新的、更好的方式来做你重新做的事情。

In your case, definitely don t, for this reason: http://gigaom.com/apple/apple-cracks-down-on-udid-use/

我认为,受欢迎的替代办法是,首先建立一个统一调查(它将是独一无二的,但不与这个装置挂钩),并在随后的运行中加以提及。 人们非常广泛地谈论了你是否去了。





相关问题
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, ...

热门标签