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 02-07-2011, 08:26 PM   #1 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 7
sorinescu is on a distinguished road
Default Is there a one-time way to add a Tab at the bottom of all pages?

Does anybody know how to add the navigation Tab or the ads tabs (AdMob or iAd) only once in Interface builder, in order for it to be present in the app the whole time, instead of adding it individually to every xib.file? Basically, to stay at the bottom of the screen the whole time, instead of opening every single xib. file and placing it one by one?

If I have an app with 1,000 pages, what's a faster version to lock the tab at the bottom of all pages?

Thanks and sorry for the English, is my second language.
sorinescu is offline   Reply With Quote
Old 02-07-2011, 08:31 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

English or no, you need to get the terminology in order. What do you mean by "navigation tab" and "1.000 pages"? Regarding pages, I hope you don't mean views/xibs because a 1.000 of them is waaay to much.

Secondly, check out the Sample Code in the Documentation regarding iAds. I know it's available in IB but you should really be doing that through code if you have more than one view where you will be using iAds. Load it only once, likely in the app delegate, then use it from there in all views. The sample code shows how to do that.
baja_yu is offline   Reply With Quote
Old 02-07-2011, 08:55 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 7
sorinescu is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
English or no, you need to get the terminology in order. What do you mean by "navigation tab" and "1.000 pages"? Regarding pages, I hope you don't mean views/xibs because a 1.000 of them is waaay to much.

Secondly, check out the Sample Code in the Documentation regarding iAds. I know it's available in IB but you should really be doing that through code if you have more than one view where you will be using iAds. Load it only once, likely in the app delegate, then use it from there in all views. The sample code shows how to do that.


Thanks a lot. What I meant was:

- 1,000 pages meant Views (example: an app that has let's say, 1,000 HD pictures. When you open a picture and displays the image, an ad is at the bottom). My question is: that picture that you open, it doesn't have to be created as a xib. file, right? I just have to add a new "View" in the existing xib, correct?


Thanks again!
sorinescu is offline   Reply With Quote
Old 02-07-2011, 09:13 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

If all you need is to display one of a 1000 images, then one view is enough, simply load through code, the image that you want.
baja_yu is offline   Reply With Quote
Old 02-08-2011, 10:24 PM   #5 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 7
sorinescu is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
If all you need is to display one of a 1000 images, then one view is enough, simply load through code, the image that you want.
I have eight xib. files in my app and I can't seem to find the place (in code) where I request that the AdMob bar will stay on as long as the app is open. It only shows in the main xib. file. Do you know the code line that delegates the AdMob bar to stay on all the time, or where shall it go?

I don't think I should add it manually in every view, right?

Thanks!
sorinescu is offline   Reply With Quote
Old 02-08-2011, 11:58 PM   #6 (permalink)
Registered Member
 
mouser58907's Avatar
 
Join Date: Feb 2010
Posts: 188
mouser58907 is on a distinguished road
Default

No, definitely not. What you should do is where you ad the views, check if an ad is loaded and if so, ad that to the parent view. I'm not sure how to put this in words so I'll give an example. Lets say you have a page.xib and an adbar that is 320x50 and that is your whole app. You would normally add the page.xib in your app delegate so that is where I'll tell you to do this, but yours will most likely be somewhere else.

If ad is loaded:
set page.xib to be 320x430 with origin (0,0)
set the adbar to 320x50 with origin (0,430)

If no ad is loaded:
set page.xib to be 320x480 with origin(0,0) (This is fullscreen)

Do you see what I'm saying, you don't need to add it to the individual view, but add it to the parent view and don't overlap them.
__________________
My Apps:Pee Prank (free)
My Company: Pulsar Productions

If I helped you, download my App or tell a friend! Thanks.
mouser58907 is offline   Reply With Quote
Old 02-09-2011, 09:30 PM   #7 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 7
sorinescu is on a distinguished road
Default

Quote:
Originally Posted by mouser58907 View Post
No, definitely not. What you should do is where you ad the views, check if an ad is loaded and if so, ad that to the parent view. I'm not sure how to put this in words so I'll give an example. Lets say you have a page.xib and an adbar that is 320x50 and that is your whole app. You would normally add the page.xib in your app delegate so that is where I'll tell you to do this, but yours will most likely be somewhere else.

If ad is loaded:
set page.xib to be 320x430 with origin (0,0)
set the adbar to 320x50 with origin (0,430)

If no ad is loaded:
set page.xib to be 320x480 with origin(0,0) (This is fullscreen)

Do you see what I'm saying, you don't need to add it to the individual view, but add it to the parent view and don't overlap them.
Thanks a lot!
sorinescu is offline   Reply With Quote
Reply

Bookmarks

Tags
builder, interface, navigation, tab

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: 372
13 members and 359 guests
blasterbr, Clouds, dre, EvilElf, jeroenkeij, jimmyon122, Mah6447, Morrisone, n00b, pungs, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,121
Posts: 402,900
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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