How to hide UIPickerView in interface builder?

When I edit the xib file, the UIPickerView occupy a very large space, kind of annoying, how can I hide it when I do not want to see it?


You can't "hide" it from Interface Builder, but there are two or maybe three things you can do to make it less distracting for you.


Change the order in which it appears in your ViewController to be the highest (or actually the deepest), so it's behind everything else. Then all other controls or views you put over the Picker will be "on top" of the Picker.

Here's what it looks like in my Interface Builder:


Set the "hidden" bit on the Picker object. This "dims" the Picker in IB, but at the same time don't forget to UN-HIDE it programatically when it's time for the object to appear.


Or simply move the Picker out of the way of whatever you're doing and then move it into position (whether manually in IB before compiling or programmatically at run time).

Need Your Help

Index of element in Numpy array

python arrays numpy indexing indexof

In python we can get the index of a value in array by using .index() How can I do it with a numpy array?

rename a file in windows but save the previous name

windows rename

I have a file with 1000 wav items and I want to change their name but somehow save their previous name within file details. (I mean rename the file, then by right clicking on file and /properties/d...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.