Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

iPhone – Add Tabbar to iOS

September 23, 2021By Simo iPhone

I have an application that contains a tab bar view. I have a login xib (login.xib) and its corresponding class file (LoginController) in the same application. I hope When my application starts, the login file should be loaded first, and then once I click the login button, my TabBar view should start.

Tried many methods, but no effect.

p>

The latest one is that I tried to put the following code in the AppDelegate file at the end of the application didFinishLaunchingWithOptions but faced an error:

loginController = [[LoginController alloc] init];
[window addSubview:tabcontroller.view];
[window addSubview:loginController.view];
[window makeKeyAndVisible];
return YES;

< p>The error is that “loginController” is not declared.

What I missed. If there are other ways to meet my requirements, please let me know.

In addition, clickButton in the login (), I am using the event Touch Up Inside.

loginController = [[LoginController alloc] initWithNibName:@"login" bundle:nil];
[window addSubview:loginController.view];
[window makeKeyAndVisible];

Add the following line after completing the login check.

[window addSubview:tabcontroller.view];

Also, please check where loginCont is used?

Thank you,

I have an application that contains a tab bar view, and I have a login xib in the same application (login.xib ) And its corresponding class file (LoginController). I hope that when my application starts, the login file should be loaded first, and then once I click the login button, my TabBar view should start.

Tried many methods, but no effect.

The latest one is that I tried to put the following code in the AppDelegate file at the end of the application didFinishLaunchingWithOptions but faced an error:

< /p>

loginController = [[LoginController alloc] init];
[window addSubview:tabcontroller.view];
[window addSubview:loginController.view];
[window makeKeyAndVisible] ;
return YES;

The error is that “loginController” is not declared.

What I missed. If there are other ways to meet my requirements, please let me know.< /p>

In addition, on the clickButton() in login, I am using the event Touch Up Inside.

loginController = [[ LoginController alloc] initWithNibName:@"login" bundle:nil];
[window addSubview:loginController.view];
[window makeKeyAndVisible];

After completing the login check, add the following line .

[window addSubview:tabcontroller.view];

Also, please check where loginCont is used?

Thank you,

Add, IOS, login, Screen, Sign in iPhone, Tabar

Post navigation

iPhone – By default, use the LLVM compiler for all XCODE projects?
iPhone – How to write a correct readOONLY attribute?

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1069 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment Cancel reply

Your email address will not be published.

Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress