gpt4 book ai didi

ios 将消息传递给模态视图

转载 作者:行者123 更新时间:2023-11-29 13:47:45 25 4
gpt4 key购买 nike

我有一个调用其他 View [xib] 的 View [xib],当我转到第二个 View 时,一个值会发送到第二个 View .m

initWithNibName

但是当我将第二个 View 称为模态视图时,我的消息没有发送,

我该怎么做?

Contacts *info = [XlistArray objectAtIndex:indexPath.row];

string1 = info.c_name;
editContactViewController *mensaje =[editContactViewController alloc];
mensaje.string2 = string1;

editContactViewController *vistaEdit = [[editContactViewController alloc] initWithNibName:nil bundle:nil];

vistaEdit.modalPresentationStyle = UIModalPresentationFormSheet;



[self presentModalViewController:vistaEdit animated:YES];



/*
Contacts *info = [XlistArray objectAtIndex:indexPath.row];

string1 = info.c_name;

editContactViewController *mensaje =[editContactViewController alloc];
mensaje.string2 = string1;


editContact = [[editContactViewController alloc] initWithNibName:@"editContactViewController" bundle:nil];

[self.view addSubview:mensaje.view];

[UIView commitAnimations];

[tableView deselectRowAtIndexPath:indexPath animated:YES];*/

请注意,string1 是我的发送者消息,string2 是我的接收者,评论部分是有效的部分,用于发送,

如何发送消息?基本抱歉

非常感谢!

最佳答案

发送至 dany_dev

   Contacts *info = [XlistArray objectAtIndex:indexPath.row];

string1 = info.c_name;

editContactViewController *vistaEdit = [[editContactViewController alloc] initWithNibName:nil bundle:nil];

vistaEdit.string2 = string1;

vistaEdit.modalPresentationStyle = UIModalPresentationFormSheet;


[self presentModalViewController:vistaEdit animated:YES];

关于ios 将消息传递给模态视图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6573519/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com