기금넷 공식사이트 - 복권 조회 - Oc 코드를 통해 현재 appID 를 얻는 방법
Oc 코드를 통해 현재 appID 를 얻는 방법
{
Nsdictionary * query = [nsdictionary dictionarywithobjectsandkeys:
-응? KSecClassGenericPassword, kSecClass,
-응? @"bundleSeedID ",kSecAttrAccount,
-응? @ "",kSecAttrService,
-응? (id)kcfbooleantrule, kSecReturnAttributes
-응? Nil];
CFDictionaryRef 결과 = nil
Osstatus status = secitemcopymatching ((cfdictionaryref) 쿼리, (cf typeref *)& amp;; 결과);
If (상태 = = errsecitemnotfound)
Status = secitemadd ((cfdictionaryref) 쿼리, (cftyperef *) & 결과);
만약 (상태! = errSecSuccess)
Nil 을 반환합니다
Nsstring * accessgroup = [(nsdictionary *) result objectforkey: ksecattraccessgroup];
Nsarray * components = [access group components separated by string: @ ". ];
Nsstring * bundleseedid = [[components object enumerator] nextobject];
Cf 릴리즈 (결과);
BundleSeedID 를 반환합니다
}