2
こんにちは、私はこのコードを取得し、 "NSString型のNSMutableStringを初期化する互換性のないポインタ"とmemリークを警告しました。誰もがこれを修正する方法を知っているようですか?互換性のないポインタの警告を取り除くために互換性のないポインタNSMutableStringをNSString型の式で初期化しています - 警告
- (IBAction)numberClicked:(id)sender {
UIButton * numberBtn = (UIButton*)sender;
NSMutableString *value = (self.textField.text == nil ? [NSMutableString new] : self.textField.text);
[value appendString:[NSString stringWithFormat:@"%d",numberBtn.tag]];
self.textField.text = value;
}
thnaks