简体   繁体   中英

Refresh the view controller from popover

I have a view controller which has 100 pages (every page is different), from this controller I open a popover view and inside this popover there are buttons which are planned to change the pages. For example, if "number 10" button is pressed from popover, the 10th page should come in view controller. But I couldn't implement it. The code passes the view controller and to the correct method but the page doesnt change and also the popover view controller is not dismissed. I miss something but what is that? If someone can help me, I'll be so glad.

PS. i dont use tableview

Kind regards, Can

first of, who's your PopOver delegate? Our UIViewController? Is he a UIPopOverControllerDelegate ? If yes, have you implemented, for example this method:

- (void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController

So you know when it was dismissed? Give me some feedback. :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM