我正在尝试传递一些数据,同时做一个segue,但我得到了错误
聊天系统[2501:974283] - [UIViewController setVisitid:]:无法识别 选择器发送到实例0x17e22a10聊天系统[2501:974283]
由于未捕获的异常而终止应用 ' NSInvalidArgumentException',原因:' - [UIViewController setVisitid:]:无法识别的选择器发送到实例0x17e22a10'
这是我的代码
- (void) goToTransferChat {
TransferChat *dvc2 = [self.storyboard instantiateViewControllerWithIdentifier:@"id_chat_transfer"];
[dvc2 setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
dvc2.visitid = self.visitorID;
dvc2.visitame = self.visitorName;
dvc2.visitStartTime = self.visitorStartTime;
[self presentViewController:dvc2 animated:YES completion:nil];
}
TransferChat
#import <UIKit/UIKit.h>
@interface TransferChat : UIViewController
@property(strong, nonatomic) NSString *visitid;
@property(strong, nonatomic) NSString *visitame;
@property(strong, nonatomic) NSString *visitStartTime;
- (void) getAllOperators:(NSString *) profileToken;
- (void)setupProfileidURL:(NSString *)profileId companyId:(NSString *) companyID;
@end