2011-02-14 3 views
0

첫 번째 테이블에는 일부 셀이 포함되어 있습니다. 사용자가 셀을 클릭하면 두 번째보기가로드됩니다. 두 번째보기에서 첫 번째보기에서 클릭 한 셀의 텍스트를 검색하고 싶습니다.이 값을 사용하여 sqlite db를 쿼리해야합니다. 다른 뷰의 테이블에있는 셀의 textproprety에 도달하는 방법

는 당신에게 감사

PS :

void GoToView(UIViewController *from, UIViewController *to){ 
    /* 
    * Preparo l'animazione e aggiungo la subview. 
    */ 
    [UIView beginAnimations:nil context:nil]; 
    [UIView setAnimationDuration:1.0]; 
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:from.view cache:YES]; 
     [from.view addSubview:to.view]; 
    [UIView commitAnimations]; 
} 
+0

이 문제가 해결 되었습니까? – EmptyStack

답변

1

왜 두 번째 뷰 컨트롤러의 속성에 필요한 값을 저장하지 않습니다

나는이를 통해 두 번째보기 전화?

+0

그건 내 의지이지만 : 어떻게? – Michele

+0

두 번째보기 컨트롤러 클래스에서 [property] (http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocProperties.html)를 만든 다음 'tableView : didSelectRowAtIndexPath :'cellForRowAtIndexPath :'를 사용하여 그 값을 읽고 뷰 컨트롤러 속성에 할당합니다. – emix

관련 문제