I have an app using a UITabBarController, and I have another view which is above the bar behind tab bar controls Need to wake up, but if it is not clear in front of the contents of the tab bar, then drag the tab bar button and drag it to an advertisement in the tab add-up that appears in front of everything.
By now I see such a code, but I want to change it if there is a better way to do this ...
tabBarController.viewControllers = [NSArray ArrayWithObjects: locationNavController, emergencyNavController, finderNavController, newsNavController, zero]; AboutView = [[alloc] initWithFrame: CGRectMake (0, window.frame.size.height - tabBarController.tabBar.frame.size.height - 37, 320, window.frame.size.height - tabBarController.tabBar.frame .size. Height)]; [Add windowSubviewview: Tabbar controller. picture]; // Adds the visual property of the tab bar into the window [window adsview: about]; // This is the view that [Window Mikeke and Wisbee] slides; About presently, there is a subclass of UIView and sits in its starting position at the bottom, but this tabbar hides the controller how do I change it to allow tabs to stay on top Can I still, but what about the other content in front of me?
You have to add aboutView as a subview of the view in the current active view controller. You can access that scene through the property.
You can add code to your view implementation when it can animate the scene when it appears.
I want to do something like this in a popup view, under the tab bar control, you can add some code in the message about about implementation of aboutView:
- (zero) didMoveToSuperview {CGRect currentFrame = self.frame; // frame animate ... it just moves up to see a 10 pixels you want // slide to see all sides until the CGRAR target == CGFFSet (currentframe, 0, -10); // Start the animation block and set the offset [Start UIView Animation: Zero Reference: Zero]; [UIView Set Animation Duration: 0.5]; Animation duration in seconds / [UIView Set Animation Deglet: Self]; Self.frame = targetFrame; [UIView commitAnimations]; } So when the selected viewer about you is added to the view controller's view, it automatically animates it.
Comments
Post a Comment