6
Objective-Cでいくつかの文字列を使用してCNPostalAddressを作成しようとしています。私は、番地、都市、州、ジップ、国の値を持っています。私の質問は、いくつかの値を持つCNPostalAddressを作成したいということです。私は以下のコードを試しましたが、動作しません。あなたの貴重な時間をありがとう。既知の値からCNPostalAddressを作成します。
CNPostalAddress *postalAddr = [[CNPostalAddress alloc] init];
postalAddr.street = [NSString stringWithFormat:@"%@ %@",street1,street2];// here I am getting error. Street property is read only.