2011-07-04 1 views
1

모달하는IOS 내가 두 번째보기로 이동 때 XIB, 는, 값이 두 번째보기하는 .m로 전송됩니다 다른보기를 호출하는보기 [XIB을]이보기

initWithNibName

하지만 난 모달 뷰와 두 번째보기, 내 메시지가 전송되지 않도록 호출 할 때,

은 내가 어떻게 할 수 있습니까?

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];*/ 

그 문자열 1 내 보낸 메시지입니다 유의하시기 바랍니다, 1과 문자열 내 수신기, 주석으로 부분은 보내기 위해, 작동 하나,

가 어떻게 메시지를 보낼 수있다? 기본 죄송합니다

많이 고마워요!

답변

1

TNX 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];