all:
I have one customized NSPopover, and I set it's background color into white. Then I add one Button without border into the viewcontroller, and put the viewcontroller into the NSPopover. The question is that, there will be shadow area for the button in this NSPopover, could someone have any ideas about this?
The issus is also exist for Label.
The customized NSPopover code is as follow:
https://github.com/shergin/NSPopover-MISSINGBackgroundView
and the result is:The final result of adding button to NSPopover
This is a known bug.
Set the appearance property of the textfield to NSAppearanceNameAqua.
Related
In my project I created some custom popups. Just like for example the UIActionSheet I would like to create an overlay, disable other interactions and gray out the tintColor of the UITabBar buttons, UINavigationBar buttons and so on.
As for now I've managed to fix this by manually creating a background overlay, disable the interaction by adding this overlay over other views and change the tintcolor manually.
I've searched for an API method to automatically solve this problem, but without success.
Hoping to find some good suggestions here at SO.
Edit
The answer I was looking for is called tintAdjustmentMode:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/#//apple_ref/occ/instp/UIView/tintAdjustmentMode
Add a new view in your xib
set background color as a black color and set the opacity to 50%
Create your popup on this view.
Put this view in the main view.
Finally just hide & unhide this view according to your requirement.
In this you don't need to disable any other control.
I need to achieve effect of my button like this:
My questions are:
How can I add this custom shadow to button, so only 'BUTTON' surface reacts for touches?
When I have the next button in the bottom, close to previous one, how can I be sure that it will not be covered by upper's button shadow?
I need to have all the buttons in front and all the shadows in the back.
If you want to add the shadow without having it clickable, you need to add an imageView to as a subview to the button. (make sure clip subviews is disabled).
If you want the shadow of one button not appearing on top of the other, then you need to have the shadow(s) added separately to the main parent view. The solution in option 1 will not work. Its not neat, but its the only way i can think off.
I'm working with white text (labels) in Xcode, and currently I can't see them because the background of the storyboard is also white. How do I change the appearance of the storyboard?
To clarify, I do not want my text to change color, I only want to change the appearance of the storyboard so that I can develop more easily.
If you are referring to the white in your view controller:
Select the View
Go to inspector (right panel, 4th item)
Change the background color field (section view)
I'm not sure you can do what you're trying to achieve. My best advice to you would be to create a dark coloured UIView which you can place behind the UILabel. Once you're happy you've got the UILabel setup the way you want it you can then just delete the UIView.
I've changed my navigation bar style to black opaque but my done button remains blue, yet the compose button is fine / black.
Why is is happening and more importantanly how do I fix this ?
The buttons was added in IB and shows blue there, while the nav bar is black.
The best thing to do is to make sure you're using the UIBarButtonSystemItemDone system button item, unaltered. If you really want to change the appearance of your Done button, you will need to assign a custom view to the bar button item's customView property. Then you'll be able to control every aspect of its appearance.
I want to customize my button like those UIBarButtonItems on a UIToolbar with tint color. Does any one know how to draw that tint effect?
I went nuts trying to figure this out once.
The best I could do was to do my own "custom" button, and use it as the button's "image".
The real hard part was getting the font right. The web said it was supposed to be "Helvetica" I believe - but it never looked right.
The thing you're trying to do isn't supported. You should just make your own button that looks the way you want it to and set it as the customView of the button item object.