私はこれを使用しています:
https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar
たとえば、カメラボタンからモーダルビューを取得する方法を知っている人はいますか(カメラボタンがカメラ以外の何かに使用される場合)?
私はこれを使用しています:
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];
}