Around the picker view there is this gray rect of apple(the picker's body), that i dont like.
I cant find any property to change its color or opacity,to be more gentle.
Any idea ?
I was tried with :
picker1.backgroundColor=[UIColor clearColor];
It does not clean the inside color , or the outside(body) color.
Thanks.
These links should help you:
how to change the background color in UIPickerView?
Change UIPickerView background
Forum Question
You Can Download Photoshop Templates In This Tutorial
Its not possible to programatically do it...
Related
Currently I'm able to customize my progress bar modifying the whole height, in this way:
let transformScale = CGAffineTransformMakeScale(1.0, newProgressbarHeight)
self.progressBar.transform = transformScale
There is a way to modify the height of track in order to obtain a progress bar like this?
As a workaround I was pondering of put a gray view under the progress bar track tint color to clear color.
Any ideas?
iOS 5 or later, UIProgressView could set its FrontProgress Image(Green Fat)
And its Background Image(Gray Slim).
You could set Two different picture to simulate this effect.
Front Image property: progressImage.
Background Image property: trackImage.
Or,
If you only like Pure Color to avoid wasting any resource, I think the method below will fit your demand.
1.Create two UIProgressView.Fat and Slim, Front and Behind.
2.Set the Front One's trackTintColor [UIColor clearColor].
The code and effect in simulator
I hope these could help you. Good Luck!
I know it seems to be a trivial question however I am facing hard time to find a solution.
Please let me explain what I am doing.
How I am changing NSWindow background Color
I have generated a User defined runtime attributes Key backgroundColor of type Color for the NSWindow
Issue
The above way is working fine however when I am calling the NSWindow as NSSheet then the color of window is not changing.
Please suggest some solution for the issue. Many thanks.
This is happening because when an NSWindow is a sheet, It doesn't draw It's background color.
I think a solution to this would be to add a background view to your window and draw the background using this view instead of using the window's backgroundColor property.
Like this sample app.
I want to remove the horizontal separator line between a UITabBar and the rest of the screen. I'm asking the same question as this guy but updated for iOS7.
Setting the background image of my UITabBar doesn't alleviate the problem, nor does setting the background image of the [UITabBar appearance] object.
Is this still possible in iOS7? If so, how?
You could also hide shadow line using this code:
[self.tabBar setValue:#(YES) forKeyPath:#"_hidesShadow"];
Swift
self.tabBar.setValue(true, forKey: "_hidesShadow")
The answer to this is pretty much the same as removing the separator of a navigation bar or a toolbar.
Officially, this is only possible by setting the shadowImage to an empty image. However, a closer look at the documentation, we see that:
For a custom shadow image to be shown, a custom background image must
also be set using the backgroundImage property. If the default
background image is used, then the default shadow image will be used
regardless of the value of this property.
By using a custom background image, you would lose the blurred background translucency.
The separator is a UIImageView that is a subview of the tab bar. You can find it in the tab bar's hierarchy and set it to hidden.
This solution uses a transparent image, so it is more preferable.
Swift
tabBar.shadowImage = UIImage()
Objective-C
tabBar.shadowImage = UIImage.new;
I've got a huge problem, I need to make a UIButton with custom font and text outline. Custom font is pretty easy to make and I have no difficulties doing it, but I don't know how to make an outline for button title. There are some solutions for UILabel (overriding drawTextInRect) but UIButton has no such method. Help would be appreciated!
Just put the customized UILabel on top of a blank button.
I have UINavigationBar setup as image - some wood texture. I want to insert UISegmentedControl with 4 buttons on that bar. Buttons should have same texture with slightly changed tint.
One solution would be to change tint alpha of buttons background color, so that texture in background can get trough, but as I set alpha for tint in IB it doesn't save value, it always gets back to value 1.
I cant get UISegmentedControl to show background image, so finally gave up and decide to search for help...
Effect that is desired is one in iBooks app, with buttons in Navigation Bar.
Any link or small help would be appreciated..
This post describes the steps involved and has sample code: http://idevrecipes.com/2010/12/13/wooduinavigation/
https://github.com/xhan/PlutoLand/blob/master/PlutoLand/UI/PLSegmentView.h
a custom SegmentView that can specify two images(normal, clicked)
Do not bother with one of those custom segmented control packages if you're on iOS 5 or later.
Per Dylan's suggestion, use the Appearance functionality in iOS 5+.
See the top answer here:
Customizing Left & Right UISegmentedControl Buttons