iOS Get permissions by Wusheying
-(void) requestrecord{[[Avaudiosession sharedinstance] requestrecordpermission:^ (BOOL granted) {Dispatch_async ( Dispatch_get_main_queue (), ^{}); }];} -(void) Requestaccesseventwithtype: (Ekentitytype) eventtype{[[Ekeventstore New] Requestaccesstoentitytype: EventType completion:^ (BOOL Granted, Nserror *error) {Dispatch_async (Dispatch_get_main_queue (), ^{}); }];} -(void) Requestaccesssocial: (nsstring*) identifer{acaccountstore *accountstore = [[Acaccountstore alloc] init]; Acaccounttype *twaccounttype = [Accountstore accounttypewithaccounttypeidentifier:identifer]; [Accountstore Requestaccesstoaccountswithtype:twaccounttype Options:nil completion:^ (BOOL Granted, Nserror *error) {Dispat Ch_async (Dispatch_get_main_queue (), ^{}); }];} -(void) Addressbookrequest{abaddressbookref addressbook = abaddressbookcreatewithoptions (null, NULL); Abaddressbookrequestaccesswithcompletion (addressbook, ^ (bool granted, cferrorref error) {Dispatch_async (dispatch_g Et_main_queue (), ^{}); });}
iOS Get Permissions