आप द्वारा प्रदान की कोड नमूना => के अनुसार https://github.com/boctor/idev-recipes/tree/master/RaisedCenterTabBar
केंद्रीय उठाया टैब बटन एक UIButton है, इसलिए केवल BaseViewController.m कक्षा में इस तरह है कि बटन की क्रिया सेट
[button addTarget:self action:@selector(showmodalview) forControlEvents:UIControlEventTouchUpInside];
और फिर showmodalview विधि में लिखने के लिए इस कोड =>
-(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];
}
स्रोत
2012-05-19 12:20:43
हां, 'UITabBar' पर एक बटन टैप करने से एक मोडल व्यू उठाना संभव है। आपको अपना प्रश्न अधिक विशिष्ट बनाना होगा। –
एक सा ... – stewart715