我的应用基于标签栏控制器,其中包含三个部分,三个UITableViewController
。
我需要在点击一行(UitableView
)到第二个didselectedrowatindexpath
时从第一个UITableView
发送数据,但我真的不知道该怎么做,你能帮帮我吗?
答案 0 :(得分:1)
您可以通过在didselectedrowatindexpath方法中放置postNotification调用来执行此操作
- (void)postNotificationName:(NSString *)notificationName object:(id)notificationSender
并提供任何需要了解变更的其他控制器的观察员
- (void)addObserver:(id)notificationObserver selector:(SEL)notificationSelector name:(NSString *)notificationName object:(id)notificationSender