Add UITabBar Control!

Posted by Taimur Hamza on Stack Overflow See other posts from Stack Overflow or by Taimur Hamza
Published on 2010-05-11T11:01:11Z Indexed on 2010/05/11 11:04 UTC
Read the original article Hit count: 446

Filed under:
|
|

hi, I m stuck in a really simple problem. And i m afraid my question might annoy some people. The problem i am facing in short is that i want to add UITabBar Control to my iphone application other than the main screen.

Let me explain, I have done everything successfully Added UItabbar control from IB in the main window's xib, added a variable at the back end , associated it by dragging the line. Also added a UIWindow variable and wrote these lines .

[window addSubview:tabBarController.view];
[window makeKeyAndVisible];

when i launch the application a blank window appears and tab bar shows on its bottom. But the problem i dont want to add it to a particular window which is inside my app. Its no the first screen of my app. Its actually the 3rd screen of my app. Can anybody help ? thanks

Taimur

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk