我想UITabBar
在登录成功时显示界面。UITabBar
我在中声明了接口AppDelegate
,但是登录成功后我不知道如何调用接口。
这是我的代码:
appdelegate.m
-(void)loadInterface
{
[self configureiPhoneTabBar];
}
-(void)configureiPhoneTabBar
{
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
UIViewController *controller1 = [[tabBarController viewControllers] objectAtIndex:0];
[self configureTabBarItemWithImageName:@"home_ON.png" : @"home.png" andText:@"Trang chủ" forViewController:controller1];
UIViewController *controller2 = [[tabBarController viewControllers] objectAtIndex:1];
[self configureTabBarItemWithImageName:@"channel_ON.png" : @"tvChannel.png" andText:@"Kênh" forViewController:controller2];
}
和loginviewcontroller.m
- (IBAction)btnLogin:(id)sender {
[self performSegueWithIdentifier:@"idenLogin" sender:self];
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[delegate loadInterface];
}
其次,当您触摸“播放”按钮时,布局视频显示并且可以正常工作,但我想自动旋转
注意:这是iphone上的界面,我在摘要中修复了肖像,我仍然显示风景,怎么办?
你能下载我的代码演示吗?