ios - Healthkit permission limit to 20 -
i have integrated health kit project , working fine, when read 8 health kit records. need records, application asks permission 20 health kit type identifiers. can read health kit data? need special permission? here code tried: - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { [self requestauthorization]; } - (void)requestauthorization { if ([hkhealthstore ishealthdataavailable]) { nsset *writedatatypes = [self datatypestowrite]; nsset *readdatatypes = [self datatypestoread]; [self.healthstore requestauthorizationtosharetypes:writedatatypes readtypes:readdatatypes completion:^(bool success, nserror *error) { if (!success) { nslog(@"you didn't allow healthkit access these read/write data types. in app[][1]. error was: %@.", error); return; } }]; } } - (nsset *)datatypestoread { hkquantitytype *...