开发者

How to reach the textproprety of the cell of the table of another view

The first contains a table that contains some cells. When user click on a cell the second view is loaded. In the second view I'd like to retrive the text of the clicked cell in the first view (I have to query a sqlite db with this value).

Thank you

PS:

I call second view through this:

void GoT开发者_高级运维oView( 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];
}


Why don't you save the value you need in a property of the second view controller?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜