Theo mẫu mã do bạn cung cấp => https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar
Các trung ương đã tăng nút tab là một UIButton, vì vậy chỉ cần thiết lập các hành động của nút đó như thế này trong lớp BaseViewController.m
[button addTarget:self action:@selector(showmodalview) forControlEvents:UIControlEventTouchUpInside];
và sau đó trong phương pháp showmodalview viết mã này =>
-(void)showmodalview
{
UIViewController *view1=[[UIViewController alloc] init]; // you can use any view controller instance you want ,this is just the example.
[self presentModalViewController:view1 animated:YES];
}
Nguồn
2012-05-19 12:20:43
Có, có thể tăng chế độ xem phương thức từ nhấn vào nút trên 'UITabBar'. Bạn cần đặt câu hỏi của mình cụ thể hơn. –
Cập nhật một chút ... – stewart715