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.
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.
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?
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?
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.
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.