0

uniqueIdentifiervsについて質問identifierforVendorです。ログイン識別の目的で UDID を使用し、forVendor の新しい iOS 6 バージョンへの切り替えを進めています...

私の質問はこれです 1) Apple はまだ uniqueIdentifier を使用しているアプリを拒否していますか? 2) 第 1 世代の iPad が 6.0 に移行することを許可していないのに、どうすればこれを拒否できるのでしょうか?

PS - 6.0 で常に機能するとは限らないこともわかりましidentifierforVendorた。6.0.1 で解決されたようです。

これが私が使用しているコードです...拒否されると思いますか?

static inline NSString* UniqueDeviceId() {
    if ([[[UIDevice currentDevice] systemVersion] compare:@"6.0.1" options:NSNumericSearch] != NSOrderedAscending)
        return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
    return [[UIDevice currentDevice] uniqueIdentifier];
}

ありがとう

4

2 に答える 2

3

Apple のレビュー チームを代弁することはできませんが。代替手段がないバージョンの iOS をアプリがサポートしている限り、この廃止された API の使用が拒否されることはまずありません。

コードを更新して、新しいメソッドを適切にチェックします。

if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
    return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
} else {
    return [[UIDevice currentDevice] uniqueIdentifier];
}
于 2012-11-06T22:04:03.503 に答える
0

現在、アプリは UDID へのアクセスを許可されておらず、UIDevice の uniqueIdentifier メソッドを使用してはなりません。アプリとサーバーを更新して、iOS 6 で導入されたベンダーまたは広告識別子にユーザーを関連付けてください。

NSUUID *uuid = [[UIDevice currentDevice] identifierForVendor];
NSString *uuidString = [uuid UUIDString];

ADSupport フレームワークを追加する必要があります

于 2013-05-09T11:20:47.157 に答える