iOS 页面跳转
2016-07-19 本文已影响31人
小辉辉___
从UITableViewCell中的button利用通知发送点击事件
#define DSStatusOriginalDidMoreNotication @"StatusOriginalDidMoreNotication"
- (void)sharedBtn
{
//利用通知发送更多按钮被点击:挣对于多层次需要传递数据
[[NSNotificationCenter defaultCenter] postNotificationName:DSStatusOriginalDidMoreNotication object:nil];
}
// 4.监听更多按钮被点击通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(shareCommentClick:) name:DSStatusOriginalDidMoreNotication object:nil];
-(void)shareCommentClick:(NSNotification *)notification
{
MMHRelayViewController *publishedState = [[MMHRelayViewController alloc]init];
[self.navigationController pushViewController:publishedState animated:YES];
}