私はこれを使用しています:
https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar
そして、次を使用してモーダルビューを上げました:
BaseViewController.m では、中央のボタンが追加されます
-(void) addCenterButtonWithImage:(UIImage*)buttonImage highlightImage:(UIImage*)highlightImage
オブザーバーを追加するだけです。
[button addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];
そして明らかに実装します:
-(void)click:(id)sender{
[self presentModalViewController:[[UIViewController alloc] init] animated:YES];
}
View Controller が表示されると、タブバーが消えます。どうすれば画面上に維持できますか?