外部クラスファイルにデータを保存していますが、Bool値 をパラメータとして保存しているときにエラーが発生しています。 は、以下のソースコード .savefile.h辞書値にパラメータを設定する方法
-(void) saveDecreasedActivity:(NSInteger) bathing
meal:(NSInteger) meal withTitle:(NSString *)title independentItem:(BOOL)timeItem;
{
NSMutableDictionary *lDataObj = [[NSMutableDictionary alloc] init];
[lDataDict setValue:lSeqCounter forKey:@"seqCounter"];
[lDataObj setValue:timeItem forKey:@"independentItem"];
}
であると私はそれが事前に
timeItem is incompatible integer to pointer conversion sending "BOOL" (aka singned char) to parameter of type id
感謝を見せていた他のクラス
[saver saveDecreasedActivity:[self.bathingControl selectedSegmentIndex]
meal:[self.mealControl selectedSegmentIndex] withTitle:lTitle independentItem:YES];
の中のデータを保存してい