I'd like to open the iphone calendar app programmatically from within my app. According to this post: How to open the iPhone calendar from within my app? it isn't possible (May 22 2010!). Maybe the ios sdk 4 or ios sdk 5 support such a feature?
It's not possible, except for using UIDocumentInteractionController with an .ical file, but that's pretty pointless as you could achieve the same (adding an event) by using Event Kit.
use this line to open ios calendar :
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"calshow://"]];
Related
I'm developing an iPhone App. One Feature should be an PhoneCall-Button on the LockScreen and a Button to show some Information in a different view.
Is this possible without a Jailbreak?
If your answer is YES, how to do it?
No, it is not possible without a jailbreak.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Opening the Settings app from another app
Is there a way to direct the user to the Settings.app whenever I show a UIAlertView prompt? This prompt alerts the user that his location services is turned off and I want the user to open the Settings.app when he taps the button inside my UIAlertView.
UPDATE: I'm looking for a similar code stated here:
How to launch myapplication settings tab in settings app from my application in ipad
iOS 8 and iOS 9
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
There is no way to do this.
Because till now (11th Jan 2013) there is no url scheme available for settings app.
iOS 6
You can't do this on iOS 6.
iOS 5 and below (< iOS 5.1)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs:root=General"]];
Please refer this answer for more info Call the official *Settings* app from my app on iPhone
Is it possible to display a Google Calendar in an iPhone app using a calendar-type view similar to that of the "Calendar" app instead of a WebView? What library do you recommend using to display the calendar? Thanks.
I've never tried it, but you could check this framework out: https://github.com/devinross/tapkulibrary
It's got a TKCalendarMonthView class.
In my app I use this instruction in an ibaction to open safari and go to the link:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://www.example.com"]];
but the problem is that in IOS 5 it don't work fine because it open safari and go to the link but when I return in the app I have only a black screen and the app don't run. why?
Where did you test your app? simulator or a real iPhone? The way you did is right. I have a similar app offer the browser open up thing, and it worked fine both on simulator 5.0 and iphone 4 running iOS 5.0
ok the problem is that that when I go to background I close a view with view.parentViewController dismissModalViewController ad in ios5 it don't work, now it work
How to Launch the iPhone maps application from our own code
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://maps.google.com/maps"]];
I tried this code,but its coming in browser.Its not opening in the iPhones Default map app...
I want my code to display the iPhone default map app to come up after existing the application which is being run.
use MKmapView to show map in Application instead of launching the Browser.