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 10-08-2009, 04:15 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 50
BitBlasters is on a distinguished road
Default UIView Shifted up when added to UITabController

Alright, I am pulling my hair out here. I have a UITabBarController that I created in IB, and I set the UIViewController object type for my view in IB also for the UITabBarController. But when the app is run and the first tab comes up, the view that is set to show in that tab, is shifted up by the status bar height. So the top of my view is under that status bar. What gives here? I don't understand why this would happen. Has anyone else experienced this? If so how do I fix this?

Thanks in advance.
BitBlasters is offline   Reply With Quote
Old 10-09-2009, 06:10 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 28
miguel.campiao is on a distinguished road
Default

Quote:
Originally Posted by BitBlasters View Post
Alright, I am pulling my hair out here. I have a UITabBarController that I created in IB, and I set the UIViewController object type for my view in IB also for the UITabBarController. But when the app is run and the first tab comes up, the view that is set to show in that tab, is shifted up by the status bar height. So the top of my view is under that status bar. What gives here? I don't understand why this would happen. Has anyone else experienced this? If so how do I fix this?

Thanks in advance.
If you are creating your view in IB, add the proper User Interface Elements in the desired view. So, if your app must show a status bar and a tab bar, for example, go to IB, select the view that is shifting up, open up the Inspector (cmd-I) and select the view Attributes. Then, in Simulated Interface Elements, add the status bar and tab bar, then reposition everything inside the view accordingly.
miguel.campiao is offline   Reply With Quote
Old 10-09-2009, 11:47 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 50
BitBlasters is on a distinguished road
Default RE: UIView Shifted up when added to UITabController

Quote:
Originally Posted by miguel.campiao View Post
If you are creating your view in IB, add the proper User Interface Elements in the desired view. So, if your app must show a status bar and a tab bar, for example, go to IB, select the view that is shifting up, open up the Inspector (cmd-I) and select the view Attributes. Then, in Simulated Interface Elements, add the status bar and tab bar, then reposition everything inside the view accordingly.
Ok that is weird. That is what i did at first and it did not work. So I went back unselected the Simulated interface elements both the Status bar and tab bar, saved it ran it, and then back in and reselected them and it worked.??? I dont know why but it is working now.

Thanks.
BitBlasters is offline   Reply With Quote
Reply

Bookmarks

Tags
uitabbarcontroller, uiviewcontroller

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: 344
9 members and 335 guests
givensur, glenn_sayers, guusleijsten, ipodphone, mediaspree, mtl_tech_guy, Punkjumper, whitey99, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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