アクション セットを HMEventTrigger に追加する際に問題が発生しました。以下は私のコードです。どんな提案も非常に役に立ちます。
// Set-up a region
CLLocationDegrees latitude = 17.4411482;
CLLocationDegrees longitude = 78.3910691;
CLLocationCoordinate2D centerCoordinate = CLLocationCoordinate2DMake(latitude, longitude);
CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:centerCoordinate
radius:2 // Metres
identifier:@"testLocation"];
region.notifyOnExit = YES;
region.notifyOnEntry = YES;
HMLocationEvent *ev = [[HMLocationEvent alloc] initWithRegion:region];
NSPredicate *pred = [HMEventTrigger predicateForEvaluatingTriggerWithCharacteristic:appDel.selectedCh relatedBy:NSEqualToPredicateOperatorType toValue:appDel.selectedCh.value];
HMEventTrigger *tr2 = [[HMEventTrigger alloc] initWithName:eventName.text events:[NSArray arrayWithObjects:ev,nil] predicate:pred];
HMActionSet *abcd = appDel.selectedHome.actionSets[0];
[tr2 addActionSet:abcd completionHandler:^(NSError *err)
{
}
tr2 addactionset 行でアクセス不良の問題が発生しています