Removing the bottom bar from a window + AIR App - flex4

Hey there- I need to remove a bottom bar from my FlashBuilder4 AIR App on a MAC. I've set the config.xml file to this:
<systemChrome>none</systemChrome>
<transparent>true</transparent>
While this removes the window bgcolor, top bar and border, I still receive a bottom bar in my app. How do I remove it? Thanks, any help is appreciated!

<mx:WindowedApplication
...
showStatusBar="false"
...

Related

How do I prevent the menu bar from moving down when my popover is open?

I have an app with a popover that appears on a status bar item. The thing is, when you click on the icon while you're in a full screen app, then move the mouse away from the menu bar to click on something in the popup, the menu bar moves up, and so does the popup. It's annoying.
Anyone know of any way to solve this? I've tried attaching an invisible menu to the popup, but I can't get the menu to be invisible.
Screenshot for clarity, the annoying part is where I wave my mouse around:
The popover window is moving because its parent window is the status item window, and when the parent window moves, the child moves with it. (Before I investigated this, I didn't even know Cocoa had parent and child windows.) I solved the problem with this code immediately after showing the popover:
NSWindow *popoverWindow = self.popup.contentViewController.view.window;
[popoverWindow.parentWindow removeChildWindow:popoverWindow];
Now, the menu bar still moves up, but at least the popup stays in the same place.
Either use Carbon events or watch for things happening to the menu bar (window of type NSStatusBarWindow):
Notifications of type
NSWindowDidChangeOcclusionStateNotification
NSWindowDidMoveNotification
NSWindowWillCloseNotification
NSWindowDidCloseNotification
with an object of class NSStatusBarWindow should give you enough information about the menu bar showing or hiding to add proper handling.
Super-hacky approach:
Custom window with some super-high window level to make it appear over the menu bar, then add a transparent custom view to the new window that catches and handles/blocks mouse clicks according to your needs.
Or:
Get the window instance the popover is using to display and track/handle NSWindowWillMoveNotification / NSWindowDidMoveNotification.
I converted #tbodt's answer to Swift 4 and confirmed that is resolves this issue:
let popoverWindow = popup.contentViewController.view.window as? NSWindow
popoverWindow?.parent?.removeChildWindow(popoverWindow!)

Xcode 6.4 - Navigation Bar not editable

Just to prove I'm not going mad here's my app working, complete with a Nav Bar.
But this is what it looks like in the Main.storyboard, no Nav Bar.
I have rectified this is the past by disconnecting the link from the TabBar controller and restablishing it. I want to be able to edit Nav Bar as I seem to have two back buttons. One comes up and < and the other as < Back, shown top.
What's the fix and have I created the View in the wrong order?
Many thanks.
Here's an image of where to go if you need a navigation bar in a View Controller.
If you need to add Bar Buttons, you can use a Navigation Item as well.

how to remove bottom gray bar from Three20's TTThumbsViewConroller?

I'm using Three20 for a viewing Thumbnails of Pictures in an album. everything works fine but i'm not able to remove the Gray bar at the bottom of the Navigation Bar.
Anyone who knows how to remove this bar?
solved it. had to disable sections in tableView.
Thanks Shizam i'm trying AQGridView as alternative.

Buttons and input field into "top" bar

Safari on iPad has this bar at the top (it isn't called "toolbar" on iOS, right?), with some icons and input are for searching.
How to put such buttons and input field into Navigation Bar? Is it even a Navigation Bar? From what I read a Navigation Bar has one button on the left, another one on the right and one Label in the middle. But how to create something like that "top" bar from Safari?
If I'm in XCode 4.0 and choose "View-based app", should I then set in the ViewController > Simulated Metrics > Top Bar > Navigation bar? And how to add buttons to it?
Edit
Sorry for the confusion - I don't know if the proper way is to add to a Navigation Bar. I'm just asking for a general overview how such "top "bar" is made. What kind of View do such items belong under?
You probably don't want to use a navigation bar. They are very limited in what controls you can put in them. Try using a UIToolbar instead.
I think you may be looking for the UISearchBar
UISearchBar Sample Code
In the interface builder you should be able to just drag and drop objects onto the navigation bar, as for the little icons, those are just buttons with no border and images. Those images are preloaded in the iOS SDK, so you won't have to make them, but if you want your own then you can make them yourself.

Every view without the Navbar or Tabbar is pushed down 20px

I'm building my iphone app.
I've got a problem. For every view without the Navigation bar and the Tab bar is pulled up of 20px.
So I have to place every elements 20px below the top edge.
In this screenshot http://ge.tt/4FG1fJ9 you see the Interface builder view, with 20px bar space at the top, and the result into the Simulator.
This solution works, but give me some problems, and it's not elegant.
I'm wondering why all this happens.
Have you got any idea?
Thanks
In Interface Builder, open your xib, click on the root UIView and then hit Cmd-1. That will bring you to the UIView Attributes window. There are a few drop downs for "Simulated UI Elements" and you can set the Status Bar to Black (or whatever the option is). This doesn't add the status bar to your view, it just simulates the size of the status bar so that you can layout your views without having to shift everything down by 20 pixels.
This is a common problem that seems to rear it's head in different ways. The cause, though, usually has to do with poor coordination of the status bar.
I was able to reproduce the problem just now in a test app by adding a 'Status bar is initially hidden' line to my Info.plist and setting it to YES. The app looks fine in the main view, but if I push a new view controller and then set the status bar to display, the new view appears shifted down 20px. That is, the top of the view appears 20px below the bottom of the status bar.
I know that's not a terribly specific answer, but take a look at how you're hiding/showing the status bar in your app, and also how you have the simulated status bar in your .xib files set.

Resources