是否可以从我的应用程序与iOS 5的提醒应用程序进行交互?

有没有办法从新的iOS 5内置提醒应用程序添加,阅读或删除提醒项目?

这将是所有可能与iOS 6! 🙂

https://developer.apple.com/technologies/ios6/

在撰写本文时,这个答案已经足够了。 为了保持它在这里更新是一个教程,看起来非常有用的开发一个应用程序,与本机提醒应用程序进行交互: 使用iOS 6的事件工具包来创builddate和位置的提醒

提醒不在公共API上。 创build的“geofences”对于某些进程是可见的(我已经看到了控制台日志中的fence数量),但其他app无法访问。 您只能将防护注册到自己的应用程序。

我不相信这是可能的。 没有可供开发人员使用的公共API。

我真的很想获得提醒,我发现一个postexplaininf添加事件到日历这里..

以编程方式在iPhone日历中添加自定义事件

虽然日历对于提醒是“好的”,但在所有SIRI都可以使用的情况下,使用iOS 5“提醒”应用程序更有意义! :p

编辑:我解决了我的问题,通过使用本地通知….

UILocalNotification *localNotif = [[UILocalNotification alloc] init]; if (localNotif == nil) return nil; localNotif.fireDate = itemDate; localNotif.timeZone = [NSTimeZone defaultTimeZone]; // Notification details localNotif.alertBody = @"Here is your alert!"; // Set the action button title localNotif.alertAction = @"View"; //localNotif.soundName = UILocalNotificationDefaultSoundName; localNotif.soundName = @"Bell.aiff"; localNotif.applicationIconBadgeNumber = 1; // Specify custom data for the notification NSDictionary *infoDict = [NSDictionary dictionaryWithObject:myCustomMessage.text forKey:@"message"]; localNotif.userInfo = infoDict; // Schedule the notification [[UIApplication sharedApplication] scheduleLocalNotification:localNotif]; 

这使我可以设置看起来像推送通知的通知,即使应用程序重新启动,它们仍然保留。

你可以清除它们,如果需要..

 [[UIApplication sharedApplication] cancelAllLocalNotifications]; 

等离子体

我可以帮助你在触发器到达预定义的位置。 这里是代码。

1:导入CoreLocation.framework

2:在viewController.h文件所在的代码下面

 #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface ViewController : UIViewController<CLLocationManagerDelegate> @end 

3:inviewController.m

 #import "ViewController.h" @interface ViewController (){ CLLocationManager *locationManager; CLRegion *mexicoBoundary; } @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; locationManager = [[CLLocationManager alloc] init]; [locationManager setDelegate:self]; [locationManager setDistanceFilter:kCLDistanceFilterNone]; CLLocationCoordinate2D regionCords ; //19.432608,-99.133208 lat, lon for mexico city regionCords=CLLocationCoordinate2DMake(19.432608,-99.133208); //5000 below, is in meters-radius mexicoBoundary = [[CLRegion alloc]initCircularRegionWithCenter:regionCords radius:5000.0 identifier:@"mexico_Day"]; [locationManager startMonitoringForRegion:mexicoBoundary]; } -(void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region { NSLog(@"%@: %@", @"region entered", region.identifier); } -(void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region { NSLog(@"%@: %@", @"region exited", region.identifier); } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } @end