-4

我想使用 viewDidLoad 中的 2 个 NSMutableData 如何使用它?

@property(strong,nonatomic) id sMemberID;
@property(nonatomic,assign) NSMutableData *receivedData;
@property(nonatomic,assign) NSMutableData *receivedData2;
@property(strong,nonatomic) NSString *statusMem;
4

1 回答 1

0

假设您有 receiveData 和 receiveData2 在名为 NextViewController 的 ViewController 中,

然后我们可以这样做,

NextViewController *nextViewController = [[NextViewController alloc] initWithNibName:@"NextViewController" bundle:nil];
[nextViewController setReceivedData: sendData1];
[nextViewController setReceivedData2: sendData2];
[self presentViewController:NextViewController animated:YES completion:nil];

也改变非原子,分配给非原子强

@property(nonatomic,strong) NSMutableData *receivedData;
@property(nonatomic,strong) NSMutableData *receivedData2;
于 2013-04-29T05:50:35.080 回答