ios6 - iOS Calendar restriction caused app to crash -


this scenario:

i adding event ios calender app. before adding event (add event view of calendar being shown ), if user go settings-->general-->restrictions-->calendar , restrict app's permission app crashes.

have came across issue this? leads? because xcode isn't giving relates log while crashing. running app in ios 6.0 ipod touch.

hope can help.

first permission access calendar events , add event. code permission

ekeventstore eventstore = [[ekeventstore alloc] init];

if ([eventstore respondstoselector:@selector(requestaccesstoentitytype:completion:)]) {     [eventstore requestaccesstoentitytype:ekentitytypeevent completion:^(bool granted, nserror *error)      {          if (granted){               mllog(@"wipe : geteventstorepermission : permission granted");          }          else{              mllog(@"wipe : geteventstorepermission : permission not granted");          }      }]; } else{      mllog(@"wipe : geteventstorepermission : permission not required"); }  release_object(eventstore) 

Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -