广播
//发送者
//发送值改变的广播(通知)
[[NSNotificationCenter defaultCenter]
postNotificationName:@"dataChange" object:nil];
//接受者
//接收广播
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(reloadView) name:@"dataChange" object:nil];
- (void)dealloc{
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"dataChange" object:nil];
[super dealloc];
}
push-pop View
[self.navigationController pushViewController:sub animated:YES];
[self.navigationController popViewControllerAnimated:YES];
//显示导航条
[self.navigationController setNavigationBarHidden:NO animated:YES];
模态化弹出
[self.navigationController presentModalViewController: Controller animated:YES];
[Controller dismissViewControllerAnimated:YES completion:^{
}];
动画
[UIView animateWithDuration:0.1 animations:^{
…… …… 余下全文