The answer to both of those is no, with a caveat or two. 

The first is Apple's explicit permissions policy since iOS 6 (so 5 still works 
but 5 is a small installed base now). You have to ask permission the first time 
and permission can be revoked by the user randomly on the setup screen later. I 
don't honestly recall the details of how you keep track of your current state 
so you can enable/disable buttons or put up a sheet asking the user to turn it 
back on again (once they turn it off, going to setup is the only way to put it 
back). This is a regrettable result of the kind of idiots who would, and 
probably did, write apps which spewed the calendar with 'events' full of 
click-to-pay links and other trash. So the rule is, you have to ask once, you 
can be shut off at any time, and once the user says no, they mean no, the app 
won't ask again on your behalf, they have to turn you back on from settings. 
Finding the nicest way to gracefully deal with that in an app is challenging. 

The second, there is no URL scheme for opening the calendar, certainly not a 
published one and the .. reverse engineered one you may find on the net only 
opens the calendar at a certain place, if it even works at all any more, 
doesn't let you add a putative event and switch to the app.  

On the bright side, a custom piece of UI to show the calendar event(s) designed 
for your app would probably look nicer than the stock calendar UI anyway and 
linking fully with the calendar in the app, depending on what it does, might 
give you some nice ways to show upcoming events for that app. 


On 19 Sep, 2013, at 10:00 pm, Dave <d...@looktowindward.com> wrote:

> Hi,
> 
> I've had a request for the following functionality and I'm not sure from the 
> docs if it is possible, this App is for iOS 5+. 
> 
> The App has presented a number of events in a table view. 
> 
> The request is to add a button to an item that saves it to the User's 
> Calendar. This seems easy enough, BUT:
> 
>       1.      If possible they don't want to have the "Application XXX has 
> requested access to your Calendar" Alert.
> 
>       2       They don't want it to just be added blindly to the underlying 
> Calendar Database, but rather then want to launch the Native Calendar App 
> with the Event Details and have the event all setup in the UI so that all the 
> user has to do is tap  Save or Cancel.
> 
> I can't figure from reading the docs if this is possible or not? All the 
> examples I've seen trigger the Alert Box the first time access is requested.
> 
> All the Best
> Dave
> 
> PS.
> 
> If the word "Cancel" was replaced with "Camel" in every button on every 
> computer in the world, what percentage would notice and how would they 
> interpret it?
> 
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to