Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-09-2011, 02:41 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 44
kamy is on a distinguished road
Default UITabBarController and 'doAllViewControllersSupportInterfaceOrientation'

Hi Experts,

In my iPad app (iOS SDK 4.3), i have 3 tabs at the bottom - the first tab has a splitview controller with master and detail views, the second tab has another view and the 3rd tab also has a splitview controller with master and detail views..

I have dynamically created the SplitViewControllers and the tabs.
The tabs appear perfectly and i can switch views.

The issue is while changing from landscape to portrait mode...
If i display my Login view and then show the main view(with the tabs), then the UITabBarController does not invoke the event - 'doAllViewControllersSupportInterfaceOrientation' (Please see the stack in the attached image)
Thus auto-orientation between landscape and portrait does not work

However, If i perform an 'autologin' - that is i skip displaying my Login view and directly show the main view(with the tabs), then the UITabBarController does invoke the event - 'doAllViewControllersSupportInterfaceOrientation' (Please see the stack in the attached image) and the auto-orientation works beautifully!

Now I checked all the view controllers including the login viewcontroller and i have implemented the 'shouldAutorotateToInterfaceOrientation' and returned YES...

any pointers, why UITabBarController, does not invoke doAllViewControllersSupportInterfaceOrientation when i show my loginview?
Attached Images
File Type: jpg Screen shot 2011-07-09 at 10.56.36 AM.jpg (18.8 KB, 2 views)
File Type: jpg Screen shot 2011-07-09 at 10.55.29 AM.jpg (19.3 KB, 2 views)
kamy is offline   Reply With Quote
Reply

Bookmarks

Tags
doallvieworientation, uitabbarcontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 359
9 members and 350 guests
apatsufas, chemistry, lendo, leostc, Leslie80, lzwasyc, MarkC, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:35 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0