Keeping my view tight against navigation bar (iPhone)

Hi there,
I'm having a very interesting problem... I had my application working great, but wanted to add more, so I figured I'd add a navigation bar and just call my current class (which extends UIView) as a subview in my new view controller.
The only problem is, when I do this I get it 20 pixels beneath the navigation bar. So there is a black space and it's quite frustrating and I haven't been able to get rid of it. Has anyone had this problem? Let me know if there is any specific code you want to see.
Thanks!
Apparently it's 20 pixels because setting the rect as (0,-20,any number, anynumber) sticks it in the upper left corner...
Surely this isn't the intended way to tackle this, right?

I have fixed this before. Note the use of .bounds
I am also not sure how to mark a block of text as code in these forums - I guess PM me if you cannot translate the corrupted text OR know how to properly mark code! usually it is and
- (void)loadView
// Create a custom view hierarchy.
UIView *view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame];
self.view = view;
[view release];
contentView = [[MainView alloc] initWithFrame: [UIScreen mainScreen].bounds];
[self. view addSubview:contentView];
}

Similar Messages

  • Add new view set to navigational bar

    i have a new viewset with views( this is working fine i tested it alone
    how can i add this to a link in navigational bar?

    Hi,
    You can follow the below steps,
    1. In the runtime repository add your window to the component Interface, add inbound and outbound plugs as well
    2. Go to SPRO->CRM>UI Framework->Technical Role Def->Define Work Area Component Repository, create new entry and add your component.
    3. Go to Nav bar profile and create logical link, create work center link group and add your logical link.
    4. Use some existing work center and assign the work center link group created to this work center
    5. Go to Define Business Role and choose your business role and enable that work center link.
    Regards,
    Shobhit

  • The view of the navigation bar has shrunk and I cannot see the tiny print in search box and page location box.

    How do I increase the size of the view within these 2 areas in the navigation bar?. The icons on the bar have not shrunk. I have Windows 7 and FF 19.0.2 which I just reinstalled.

    Are you using any DPI related settings in Windows to increases the font size?
    * Control Panel > Personalization : Adjust font size (DPI) or in Window Color and Appearance
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why is this navigation bar being pushed out of position?

    We added a Solar System Scope feature to our website and it views fine within the DreamWeaver software, however, when viewed "live" the navigation bar is pushed below the Scope. Hope you can help me out. If there is no solution, I may try to add a "Home" button at the top (if possible) and hope that works.
    Here is the link to take a look, scroll down to see the navigation bar placement. Thanks for your help!
    http://www.catchaghostparanormalequipment.com/solarsystemscope.html

    Your still missing the closing </div> to your apDiv1
    However forget that.
    Change this:
    <div class="welcome" id="apDiv1"">
    to:
    <div class="welcome" id="homeNav">
    So now your code is as below: (IMPORTANT: close the <div> with a </div> tag AFTER the closing </ul> tag, scroll down to see it)
    <div class="welcome" id="homeNav">
    <ul id="MenuBar1" class="MenuBarVertical">
      <li><a href="index.html">Home</a></li>
      <li><a href="lasers.html">Laser Products</a></li>
      <li><a href="iongenerator.html">Ion Generators</a></li>
      <li><a href="tracking.html">Ghost Tracking Kit</a></li>
      <li><a href="audio.html">Audio</a></li>
      <li><a href="illuminators.html">IR and UV Illuminators</a></li>
      <li><a href="paranormaltriggerprops.html">Paranormal Trigger Props</a></li>
    <li><a href="metaphysical.html">Metaphysical</a></li>
    <li><a href="equipmentcases.html">Equipment Cases</a></li>
    <li><a href="contact.html">Contact</a></li>
      <li><a href="linktous.html">Link to Us</a></li>
    </ul>
    </div><!-- close homeNav -->
    Add the below css to your styles:
    #homeNav {
        position:absolute;
        left:20px;
        top:310px;
        width:120px;
    Not ideal but that should get you closer to where you want to be.

  • Navigation bar icons are quadruplicated, how can i reset to only one.

    To the right of the search bar, there are three sets of navigation bar icons. when I go to view and uncheck navigation bar, all 4 are removed. I uninstalled FF and reinstalled it and it remains the same.

    Hi,
    Don't have "Live View".  I am using Dreamweaver 8
    My question is about the 2nd Row in Dreamweaver 8.
    The first row has Titles:  File, Edit, ect.
    The second row has icons:  I can not click on them to activate them.

  • View rotation and not rotating navigation bar

    Hi, I want to do some rotating view, exactly like the Photos App in the iPhone, and I notice they don't rotate the navigation bar when photos are rotated. Is there a switch or something else, or as I'm suspecting, the as just reading the accelerometer? (Facebook app does this as well)

    Yeah, I'm pretty sure they do that manually. I don't think the automatic rotation handling by UIViewController will do it.

  • [iPhone] Place a custom view below the status bar and above the navbar

    Hello,
    How can I add a custom view between the status bar and the UINavigationBar?
    The Myspace App does this so I know it can be done. It has a custom bar between the status bar and the navigation bar which displays the myspace logo and a logout link. I would like to do something similar w/ my app.
    Thank you

    You can move the tabs to the lower position just above the browsing area without using an extension with code in userChrome.css as basically you only need to give the Tab bar a higher -moz-box-ordinal-group value (most toolbars have a default -moz-box-ordinal-group:1 to show them in DOM order).
    *[[/questions/997353]] How can I put the Tabs back below the navigation bar?
    You can look at the Classic Theme Restorer extension to restore some functionality that was lost with the arrival of the Australis style in Firefox 29.
    *Classic Theme Restorer: https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    *You can check out the settings of the CTR extension via its Options/Preferences button on the "Firefox/Tools > Add-ons > Extensions" page.
    *You can find extra toolbar buttons and more toolbar settings in Customize (3-bar Firefox menu button > Customize)
    See also:
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox
    *http://forums.mozillazine.org/viewtopic.php?f=38&t=2824649

  • Multiple Views from "Identify Account" Navigation Bar

    I have created a navigation profile called "Identify Account" and is linked to my Weblcient Profile. However, for ease of use, I would like to have to Views (V1-Individuals and V2 - Organizations) sothat the user can have the option to search for Individuals(Citizens/Non Citizens) OR Organzinations. Basically this would behave like a drop down list of views from the navigation profile. Do I use dynamic functionality or static?

    Chris, old buddy, old pal, you have posted this question in two places.
    Go immediately to the Spry Forum and read my answer there.
    I realize you were hedging your bets on which venue was better for your question, but many of us troll both forums, and in this case, Spry is the more appropriate one for your question.
    Beth

  • How to keep the Navigation Bar to a certain # of pixels?

    I'd like to know how to control the Nav Bar so that it always remains a certain number of pixels wide. I looks like I can set the Navigation Bar Width to a value, ie 150 pixels. But if the window grows, so does the Nav Bar. The configured width appears to be the minimum the Nav Bar can shrink to, not the max it can grow to. Is there a way to control the max width of the Navigation Bar?
    Portal version is 3.0.8

    Hi,
    I thinks that you should use your navbar in a dedicated area, where you can specify the width in pixel or in percentage (default option).
    I hope this can help you !
    Pierre

  • Navigation bar is messed up... how to fix?

    Help! My navigation bar looks fine in iWeb, but the site shows the words in the wrong places, with pieces missing, and includes one heading (jean ann pics) that I eliminated from the navigation bar. I continue to make changes and those come out fine, but that navigation bar (just the welcome page) won't be corrected!
    site is www.mcelroykin.com
    I think that one time when it was publishing there was some kind of error, but I can't recall what it was-- I was on my way out the door...
    Any thoughts on how to fix this??
    Thanks!!!!!
    Liz (frustrated in NC)

    Yes! There are multiple versions of files like you suggested. How do I know which ones to keep?
    Well, the ones to 'keep' should be inside this folder: iDisk/Web/Sites/iWeb/McElroyKin/McElroyKin Blog (News)/McElroyKin Blog (News)_files. If you are viewing your iDisk's contents as icons and you have View Options set to show the icon preview, it should be possible to visually identify the navbarXnormal.png and navbarXrollover.png files to delete from other folders and to copy the correct ones from McElroyKin Blog (News)_files — but, and it's a BIG 'but', this would be a painstaking process at best, and would inevitably be prone to error.
    I'm afraid my advice is quite radical. I would delete everything in iDisk/Web/Sites/iWeb (assuming McElroyKin is your only site) and publish again from iWeb.
    While you're at it, might I also offer some advice about naming your Blog page? All the rest of your naming convention is excellent (I especially like the main site name of McElroyKin), but by naming your Blog 'McElroyKin Blog (News)' you're asking for long, ugly URLs like those which are showing up — for example,
    http://web.mac.com/bakerlizzie/iWeb/McElroyKin/41F182C9-9B24-42A2-AC53-704C9EAB8 FFA/1316BA2A-99C1-44E5-8F35-0517E4AC5298.html.
    Individual blog pages will always finish with that 30-odd-character combination in their URLs, but you can prevent having another one of those earlier in the URL by avoiding certain characters which Apple recommend against using. In this case, I suspect that the parentheses in your Blog name are responsible for this long-windedness, especially when combined with spaces (which, as we all know by now, on their own result in those ugly %20s in iWeb URLs).
    Having said all this, I also have to say that I too have experienced this navigation bar problem. I found that the situation righted itself after multiple browser cache-clearings and refreshes and re-publishings. If you're anxious about following my recommendation about deleting material from your iDisk prior to re-publishing from iWeb, you could first try re-publishing a couple of times without making any further changes in iWeb. Empty Safari's cache each time. See if this clears things up. If not, then it's time for the heavy artillery.
    800 MHz 17" iMac G4 | 1 GHz 14" iBook G4   Mac OS X (10.4.4)   2 x AirPort Express; Apple wireless keyboard and mouse; LaCie 160GB external HD

  • How to hide Navigation bar

    In photo application on iPhone, if you click an image and wait a few seconds.
    The navigation bar above will disappear and give you the full screen view.
    How could I implement this in SDK?
    I saw UINavigatioinbar is a private class inside UIViewController.
    How can I set its view.hidden to YES?
    Thanks

    Any view can be animated. Use alpha value to fade in and out. See docs for animation examples.

  • Safari 8. Tab Menu & Navigation Bar

    Safari 8 no longer displays the web address of the page being viewed this is extremely annoying ! Its a pain on an iPhone using iOS but ridiculous on a Mac !
    Also, we now have a silly arrangement for the tabs. In the previous version of safari it was clear if there were more tabs open than displayed as a little list button appeared on the far right of the tab bar, click that & a list of all open tabs not currently displayed would appear. Simple, neat & tidy.
    Now the penultimate 3 tabs reduce in size - not the lat one because that would be too obvious. So it is not clear at a glance what additional tabs, if any, are open. This is made even less obvious by the fonts, font size, colour & fine boarders being employed by Apple in some sort of stealth mission to make applications as difficult to use as possible. Oh, it doesn't end there though, oh no ! If you want to select one of the hidden tabs you have two choices.
    1. Slide the tab bar which exposes the hidden tabs hiding the previously exposed list - making it a real pain for anyone switching between tabs.
    2. Use the gimmicky tab view  (used to be recents - which didn't really have much point).
    So the questions are:
    1. How can I have the web address of the page I'm viewing displayed (at all times) in the navigation bar, as thats what it's for guys !
    2. How can I have a simple drop down list of open tabs as per the previous version of Safari & get rid of the utterly pointless tab view & recents views which only serve to waste space & processor cycles ? I want to actually get some work done, I'm intelligent enough to be able to select what I want from a list of items, I really don't need pretty pictures presented 6 at a time.

    It's not in General, but in Advanced on my computer. Four-finger swipe doesn't work on my MBP. Neither does Fn-F10. I did set it to swap Fn-F10 with F10, but F10 doesn't work either.
    I used the menu you got by clicking the little icon at top, right corner to reveal all hidden tabs. Now I can't figure out how to access the hidden tabs efficiently. What a pain. The only good part about this is that it will encourage me to close tabs I don't actively use.

  • Navigation Bar with Segmented Control

    I've been looking everywhere for this, I just don't get it ...
    I'm completly new to iPhone development and the last few days I've been playing around with it.
    Here's what I want: a navigation bar with Segmented controls (like you would see in the App store with 'New' and 'What's Hot') and when you select a segment, a view will be loaded, Just like it is in the App store, and then you can switch between the segments.
    I've been looking and the only thing i've found is how to change the background color:
    - (IBAction)changeSeg {
    if (segControl.selectedSegmentIndex == 0) {
    self.backgroundColor = [UIColor whiteColor];
    if (segControl.selectedSegmentIndex == 1) {
    self.backgroundColor = [UIColor blueColor];
    if (segControl.selectedSegmentIndex == 2) {
    self.backgroundColor = [UIColor greenColor];
    Thanks in advance! (it's probably very simple but I just can't find it)

    I implemented something similar. In my case the view was a UITableView, so I simply set the data source and delegate to a specified UITableViewController based on the segmented control and then reloaded the table.
    If there is a better solution, I would also like to know about it.

  • Invisible Navigation Bar

    I use Xara to produce my navigation bars, but in Dreamweaver
    8 the bar is generated whee I want it, but not shown in design
    mode. I have tried to turn on visibility in 'View' without success.
    Any suggestions as to what the solution is?

    That usually indicates a problem with the font that is used and isn't working or missing.
    Try to use the DOM Inspector to see which font is used in that section.
    *DOM Inspector: https://addons.mozilla.org/firefox/addon/dom-inspector-6622/
    * https://developer.mozilla.org/En/DOM_Inspector
    * https://developer.mozilla.org/en/Introduction_to_DOM_Inspector
    The DOM Inspector (DOMi) has a menu item (Search > Select Element By Click) and a button to "Find a node to inspect by clicking on it" (left icon on the toolbar).
    * open the browser window in the DOMi (File > Inspect <b>Chrome</b> Document) and choose the first from the list.
    * click the "Find a node to inspect by clicking on it" button and use the keyboard (Alt Tab) or the Task bar to go back to the browser window (do not click in the browser window other than the title bar).
    * click that element with the mouse and keep the button pressed until you see a red border to indicate the the DOMi has located that element in the DOM tree.
    You need to use the keyboard to get access to the location bar of the Firefox window (Ctrl+L) and type something or press the Down key to open the drop down list.<br />
    Once the list is open then you can click an entry and you should see the red focus ring.
    Then you can check in the right pane in the DOM Inspector which font is used:
    * click the icon with the drop marker in the header and choose "Used Font Faces"

  • Help with navigation bar please.

    Hello, and thanks for your time. Im using Fireworks cs3 to make a navbar, but cant seem to get it to work. Im following this tutorial:
    http://www.bestechvideos.com/2008/09/02/adobe-cs-create-a-navigation-bar-in-fireworks
    My problem is, Im trying to make 5 buttons in the navbar, utilising an up/over and down state. When I try to navigate with them, (Im not too advanced
    either in ability or with the site itself) in a couple of test pages, my up and over states are fine, but the down state is not present, and, when I press the
    back button and return to the page Ive just clicked out of..my down button is working...but in the previous page. Im trying to get this for a school
    assignment and am hoping someone can put me right before I lose all my hair, thanks again.

    readysteady101 wrote:
    Hello again Pixlor, and thanks again. I understand what your saying about coding in Fireworks, but when I try to make my up/down/over buttons work just using Dreamweaver to make the navbar only the up/over work. Am I missing something simple. Im going through the proper procedures as far as I can tell, but when I view the pages in my browser the same problem persists
    I am trying to keep it simple but pop-up menus and active buttons are assignment requirements, but we didnt get too far into all that before the Easter holidays, all worked well in school but now nothing but problems. Thanks again for help, much appreciated
    I'm sorry I wasn't able to give you the answer you needed, though.
    EDIT: Well, finally got things to work. Needed to pay a bit more attention to detail and spent lots more time on this than I should have, but very happy with the result. I wasnt exporting "multiple files for use without frames" but once that glitch was ironed out all is well.
    Thanks for your efforts Pixlor, sometimes software sux, but when it works out we do tend to forget the frustration we suffered while getting there
    Yay for working menus, but a big round, "like that's clear!!" for the detail you needed to have checked. On the plus side, you probably won't ever forget this tidbit of information!
    I'm so glad it you got it worked out!

Maybe you are looking for

  • Can i do airplay from my Macbook pro to my appleTV????

    can i do airplay from my Macbook pro to my appleTV????

  • Field name DUMMY is reserved (Do not use structure as include in DB table)

    We are trying to add a custom field, e.g., called ZZZ in LIS Communication structure MCEKKO (Purchasing Document Header) by creating a new custom append structure and add the field ZZZ into it, then activate the new append structure, but get warning

  • Code for employee worked hours calculation

    Hello everyone, I need some help with an ABAP code: I have records coming in with Employee ID, Date and Worked hours along with some other fields. I need to look up the employee id aginst another table to figure out if the employee depends to a parti

  • Support for Postgres Failed

    Deploying an Ejb application using Weblogic6.1 and databases Oracle and MSSQL Server was successful.I tried the same on Postgres database while trying to create Table the following error was thrown.

  • Restfull Web Services

    Everything is great about netbeans once you can start with it, I dont even remember how many days it has been that I am trying to deploy this hello world restfull web service with NB6.0. I am constantly getting the following error while building E:\J