私はiphone
iPhoneSDK4を使用してアプリケーションを作成しています
私のアプリケーションは通常のビューから始まります!
そして、ユーザーがボタンを押すと、次のビューに移動します。このビューにはTabbar
、
最初のビュー==ボタン==>2番目のビュー(タブバー付き)
これは私のSecondviewController.m
#import "SecondViewController.h"
@implementation SecondViewController
@synthesize lab,tabbar;
- (void)viewDidLoad {
[super viewDidLoad];
[self.view addSubview:tabbar.view];
}
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
[lab release];
[tabbar release];
}
@end
動作しますが、親愛なるタブバーの下半分が表示されません。