Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 从FPPopover设置不带segue的委托_Ios_Objective C_Delegates_Nsnotificationcenter - Fatal编程技术网

Ios 从FPPopover设置不带segue的委托

Ios 从FPPopover设置不带segue的委托,ios,objective-c,delegates,nsnotificationcenter,Ios,Objective C,Delegates,Nsnotificationcenter,我正在开发一个iPhone应用程序,它使用FPPopover,这是一个开源库,支持iPhone上的Popover。我让我的PopoverTVC显示我想要的内容,但我不知道如何将我的SavedPOITableViewController设置为没有segue的PopoverTVC的代理 SavedPOITableViewController从UIBarButtonItem打开PopoverTVC 我甚至应该使用委托,还是应该在SavedPOITVC的viewDidLoad上设置一个NSNotific

我正在开发一个iPhone应用程序,它使用FPPopover,这是一个开源库,支持iPhone上的Popover。我让我的PopoverTVC显示我想要的内容,但我不知道如何将我的SavedPOITableViewController设置为没有segue的PopoverTVC的代理

SavedPOITableViewController从UIBarButtonItem打开PopoverTVC

我甚至应该使用委托,还是应该在SavedPOITVC的viewDidLoad上设置一个NSNotification,以便在myVariable更新时侦听更改并在PopoverTVC上发布通知

以下是如何在我的SavedPOITableViewController上实例化我的popover:

我知道这听起来非常愚蠢,但这让我困惑了太久,我不愿意承认

尝试设置委托时,出现以下错误:

    Assigning to 'id<PopoverTableViewControllerDelegate>' from 
incompatible type 'SavedPOITableViewController *const __strong'
我的PopoverTVC没有故事板。我没有费心把它放进去,因为它自己就在外面。我在interface builder上抛出了一个孤立的TableViewController,将其类指定为PopoverTVC,尽管有警告,我还是代理工作

我不明白为什么它可以添加一个孤立的故事板,但以前它只使用代码。如果有人能解释的话,我很想听听解释

    Assigning to 'id<PopoverTableViewControllerDelegate>' from 
incompatible type 'SavedPOITableViewController *const __strong'