Is it possible to show the enable adding new calendars in EKCalendarChooser just like the default iPhone Calendar app shows the + in the upper left corner and allows you to define you calendars?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- Popover segue to static cell UITableView causes co
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
After a lot of trial and errors, I finally got it:
This, put in a UIPopoverController shows the standard Calendar Chooser Dialog including editing functionality, like in the original calendar app.
@Apple: please do us the favor and update the documentation, to make our lives easier
I've been seeking the same ready-to-use solution for almost a day and no luck so far..
The good thing is, however, that you can call
And It will show you the "Add Calendar" row
But the bad thing is that nothing happens on click/select. That's all I found out so far
UPDATE:
this code worked for me (test only on simulator so far):
In addition, of course, you will need to provide delegate for done/cancel buttons.