iOSプログラミングを学び、ブール型への参照で警告が表示されるのに、ブール型のプロパティで作成された変数に警告が表示されない理由を明確にしてください。
@property (nonatomic) BOOL *userTyped; //-> userTyped is pointer to BOOL type
-(IBAction) button:(UIButton *)sender {
self.userTyped = YES; //-> will give a warning saying assigning char to BOOL
}
@property (nonatomic) BOOL userTyped; //-> userTyped acts as variable of BOOl type
-(IBAction) button:(UIButton *)sender {
self.userTyped = YES; //-> this will not give warning.
}
ありがとうございました。