sidebar overlay protocol issues

时间:2015-07-29 00:38:19

标签: xcode swift custom-controls sidebar

So I am trying to implement a sidebar overlaying my tableviewController, and am getting an error saying the class SideBar does not confirm to protocol delegate...not sure why?!

Error: Type 'SideBar' does not conform to protocol 'FellowTravelersTableViewControllerDelegate'

Thanks for all and any help!

(lldb) po nib
<UINib: 0x78ef8f20>


(lldb) po nib.instantiateWithOwner(self, options: nil)
error: Execution was interrupted, reason: breakpoint 1.1.
The process has been returned to the state before expression evaluation.

1 个答案:

答案 0 :(得分:0)

在您的协议中,您已定义:

protocol FellowTravelersTableViewControllerDelegate { func sidebarControllerDidSelectRow(indexPath:NSIndexPath) }

您必须在func sidebarControllerDidSelectRow(indexPath:NSIndexPath)课程中实施SideBar才能实现此目的。