Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6374765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:31:43+00:00 2026-05-25T01:31:43+00:00

this is my code: – (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup

  • 0

this is my code:

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
UIBarButtonItem *newButton = [[UIBarButtonItem alloc] 
                              initWithTitle:@"Speichern" 
                              style:UIBarButtonItemStylePlain target:self 
                              action:@selector(SaveSettings)]; 
self.navigationItem.rightBarButtonItem = newButton; 
[newButton release]; 

ensStyleControl.selectedSegmentIndex = [SettingsHandler GetENSStyle];

UITabBar *tabBar = [[UITabBar alloc] initWithFrame:CGRectMake(0, 376, 320, 44)];
UITabBarItem *item1 = [[UITabBarItem alloc] initWithTitle:@"Allgemein" image:[UIImage imageNamed:@"crops.png"] tag:0];
UITabBarItem *item2  = [[UITabBarItem alloc] initWithTitle:@"ENS" image:[UIImage imageNamed:@"crops.png"] tag:1];

[item1 performSelectorOnMainThread:@selector(ShowGeneralSetting) withObject:nil waitUntilDone:NO];

[item2 performSelectorOnMainThread:@selector(ShowENSSetting) withObject:nil waitUntilDone:NO];


NSArray *items = [NSArray arrayWithObjects:item1,item2, nil];
[tabBar setItems:items animated:YES];
[tabBar setSelectedItem:nil];
tabBar.delegate=self;

[self.view addSubview:tabBar];
}

- (void)ShowENSSetting
{
    //Show View1
}

- (void)ShowGeneralSetting
{
    //Show View2
}

How to Flip between View1 and View2 in the Methods?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:31:44+00:00Added an answer on May 25, 2026 at 1:31 am
    - (void)ShowENSSetting{
    //assume    view1.tag=11;
        [UIView transitionWithView:self.view duration:2.0 options:UIViewAnimationOptionTransitionFlipFromLeft animations:^(void) {
    
            if (![self.view viewWithTag:11]) {
                view1.tag=11;
                [self.view addSubview:view1];
    
            }
    
            else {
                [self.view bringSubviewToFront:[self.view viewWithTag:11]];
            }
    
    
    
    
        } completion:^(BOOL finished) {
    
            NSLog(@"ENSSetting active");
    
        }];
    
    
    
    
    }
    
    
    - (void)ShowGeneralSetting{
    
            //assume    view2.tag=22;
    
        [UIView transitionWithView:self.view duration:2.0 options:UIViewAnimationOptionTransitionFlipFromRight animations:^(void) {
    
            if (![self.view viewWithTag:22]) {
                view2.tag=22;               
                [self.view addSubview:view2];
    
            }
    
            else {
                [self.view bringSubviewToFront:[self.view viewWithTag:22]];
            }
    
    
    
    
        } completion:^(BOOL finished) {
    
            NSLog(@"GeneralSetting active");
    
        }];
    
    
    
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code is from Prototype.js . I've looked at probably 20 different tutorials, and
This code produces a FileNotFoundException, but ultimately runs without issue: void ReadXml() { XmlSerializer
This code leads to undefined behavior: void some_func() { goto undefined; { T x
This code and problem must be familiar, but I have not found anything. Any
This code $html->link( &raquo;, '/events/view/'.$event['Event']['id']), array('escape'=>false,'class'=>'more') ) Outputs <a href=/events/view/4> &amp;raquo;</a> instead of >>
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
this code is not working , it disables the code and after sometimes it
This code does not compile. public class Diamond { public static void diamondOfAsterisks(String *
This code is from Facebook Chat Emoticons Bar Grease Monkey UserScript ImagesURL = HttpsOn?'https://s-static.ak.fbcdn.net/images/':'http://static.ak.fbcdn.net/images/';
This code is throwing the following error in IE, but not in any other

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.