How to pass data back from detail view controller to uitableview?

前端 未结 2 765
长发绾君心
长发绾君心 2021-02-06 10:45

In my app i making use of uitable to select category from my list. my task is,when ever user click or select a cell he should be able to view the selected cell detail in next vi

2条回答
  •  鱼传尺愫
    2021-02-06 11:17

    Hi you will have to do it using protocols and delegate Please see my linkon protocol and delegate

    you can also do it by creating a variable in appdelegate , setting its property and accessing it in any other view .

    YourAppDelegate *appDelegate = (YourAppDelegate *)[[UIApplication sharedApplication] delegate];
    delegate.yourVariable;
    

提交回复
热议问题