I have a slide up menu in my app that opens when a button is pushed. The problem is when I turn on my app the menu is already open. How do I have the menu closed until the button is pushed?
I figured it out! In inspector view I didn't have my size of the UITextView correct.
Related
There is a Xamarin.Forms App, which has Master (=menu) / Detail views implemented. If you click on hamburger menu, menu (=Master) appears, background (=current Detail view) is dimmed. If you click outside the menu, it disappears automatically.
It works fine on Android phone + iOS phone + iOS tablet, but on Android tablet, the opened menu does not disappear if you click outside of the menu (so you click on the dimmed area), but only on the very right side of the screen.
[See screenshot]: you have to click on the yellow area to close the menu, while on android phone or ios phone/tablet, it works fine, you can click anywhere on the dimmed area, menu will close.
I have not found any similar issue, while it's happening, and I am out of clue what could cause it.
Any hint, help, where to start?
Thanks
I just started coding for iOS 7 and can't make the title and back button appear in the Navigation item. What can cause this and how can I fix it?
Thanks.
Make sure your ViewController is embed in NavigationController. (Choose your ViewController from Storyboard, then go to Editor menu from Xcode and Embed in -> NavigationController)
Drag and drop the Navigation Item into your ViewController, and now you can enter the title of your ViewController and name for you back button.
This question is in response to Drag and Drop with NSStatusItem
The code from #rob Keniger works for me. Following these exact steps, When I run the app, click the menu bar icon, I can drag things to my drag area and everything works. My problem is if I run the app, (then instead of clicking the menu icon first) click Finder, then click the menu bar icon, when I try to drag, the menu closes as I'm dragging.
How do I make the menu view stay open every time the user has the menu open and is dragging?
Looks like you have to do this:
[NSApp activateIgnoringOtherApps:YES];
Hi I implemented an NSPopover in one of my apps, but the popover will not close. I'm guessing that it should close once I click something else, but its not. I know that there's a close popover action but that only works for a different button. How can I make it look to see that the popover is open and when it is open to close the popover when I press the same button?
I solved the problem!
First go ahead and click your .xib file.
Where you see the first responder box and files owner - click on the popover.
On the sidebar go to the attributes center
Change the behavior from Application-Defined to Transient and it should work!
That should make the popover disappear once someone has clicked outside the popover.
Another way to close the popover is to have a separate button.
Just add another NSButton and then link it to the popover on the sidebar and set it to Received actions -> perform close:
I've been playing around with a statusbar menu app and what I'd like it to do is to update the content of the menu when it is clicked. I've been able to get everything working on the awakefromnib function and it works as expected. Now i just want to update the menu everytime I click on the status bar. This surely can be done, since it's done in the dropbox statusbar menu and many of the native app statusbar menus. I'm not able to associate a action directly with the click of the menu and I don't want to leave a loop running in the background cause I don't really see a need for it. Any ideas? An alternative would be to have an action associated to a menu item which does not cause the menu to get hidden again. Any help would be welcome.
Just set a delegate for your menu, and implement the -(void)menuWillOpen:(NSMenu *)menu method.