2011-10-04 4 views
10

新しいiOS 5内蔵のリマインダーアプリからリマインダーアイテムを追加、読み込み、削除する方法はありますか?アプリからiOS 5のリマインダーアプリとやり取りできますか?

+0

偉大な質問。私は数ヶ月前にこれをやろうとしましたが失敗しました。 Appleがこれを開いて、すべてのアプリがリマインダーを投稿できるようになることを願っています。 (eBay:オークションは10月12日午後5時34分に終了する; Amazon:注文は10/6に到着する...) – mahboudz

+0

はい、これは間違いなく可能性が高い! – bijan

+1

ビル・バージェスから選ばれた答えは廃止され、パトリックの答えは正しいものになりました。 – DenNukem

答えて

0

私はこれが可能ではないと思います。開発者が利用できる公開APIはありません。

3

リマインダーは公開APIにありません。作成された "ジオフェンス"はいくつかのプロセス(私はコンソールログのフェンスカウントを見てきました)には見えますが、別のアプリケーションからアクセスすることはできません。自分のアプリにのみフェンスを登録することができます。

+1

次に、OmniFocusはどのように機能するのですか:http://vimeo.com/32334380 – an0

0

私は本当にリマインダへのアクセスのように、あまりにも、私はここにカレンダーにイベントを追加するポストexplaninfを発見したと思います。..

Programmatically add custom event in the iPhone Calendar

カレンダーリマインダのために、「OK」であるが、それはより多くを作りますすべての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]; 

これは私がプッシュ通知のように表示される通知を設定することができます....ローカル通知を使って、私の問題を解決し、彼らはアプリを再起動しても保存されています。

必要に応じて、これはiOSの6で、すべてのことが可能となります。..

[[UIApplication sharedApplication] cancelAllLocalNotifications]; 

プラズマ

0

私は、あらかじめ定義された場所に到着するトリガーであなたを助けることができます。ここにコードがあります。

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 
関連する問題