あるView Controllerから別のView Controllerに文字列を渡すIphoneアプリケーションがあります。私の文字列は、クラスのプロパティとして追加されます。しかし、文字列を渡そうとすると、インスタンスの割り当てが解除されたというメッセージでクラッシュします。( -[CFString 保持]: 割り当て解除されたインスタンスに送信されたメッセージ)。私のコードは次のようになります
RewardsViewController *rewards=[[ RewardsViewController alloc] initWithNibName:@" RewardsViewController" bundle:nil];
rewards.rewardsshopinfoname=stringshopname;
rewards.rewardsshopinfoaddress1=address1 ;
rewards.rewardsshopinfoaddress2=address2;
rewards.rewardsshopinfopoints=total;
rewards.rewardsarray=self.shoprewardsArray;
[self.navigationController pushViewController:rewards animated:YES];
誰でもこれを解決するのを手伝ってもらえますか?