I created a label using Interface Builder, and now I want to set the background color of the label using code instead of IB's color picker. (I want to do this so that I can define the color using RGB and eventually change the colorspace for the label.)
I'm in cocoa. How do I edit the attributes of an IB object using code?
My code lo...
This seems awfully basic but here goes. If you are keyboard-oriented you get used to using Command-W to close windows all the time in OS X. I'd like to add that capability to the dialogs I am creating in Interface Builder for my program. I can see how to add a keyboard equivalent to a button action but what if I don't have a button?
Sh...
Hi,
In interface builder, there are layouts options to send to back or send to front any elements such as UIButton, UIImage, UILabel etc...
Now, I would like to do the same at runtime, programmatically.
Is there an easy way to do that?
I do not want to create different views, just play with the z-axis.
Thank you.
Yohann
...
I have refactored some UIView sub-classes into a static library. However, when using Interface Builder to create view components for a project that uses the static library I find that it is unaware of the library classes. What do I need to do to make the class interfaces visible to Interface Builder?
Update: The correct answer refers to...
Why does a custom UIButton image does not resize with the button?
I set it's view mode to Scale to Fill in Interface Builder, but unlike a UIImageView image, it doesn't respect that setting.
Am I looking in the wrong place or is it not possible?
...
I have an area of a Window (in my MainMenu.xib) which I'd like to populate dynamically with unrelated "views" such as an NSTable, IKImageBrowserView etc. at different points of time depending on some user-selected criteria.
How do I define this area of the window such that it can be "replaced" with different views?
How do I attach a ta...
Hello All,
I have been in the process of learning to build iPhone applications for the last two weeks. I've gotten through a fair amount of content, and now I'm trying to create a modal pop up with presentModalView.
I can can successfully create and slide up a view, but I notice that modal views don't provide you with a default navigat...
Much I've read talks about the advantages of setting your UI up in IB. And how when the nib is "awoken" all the objects in it "come to life".
I'm experimenting with placing about 10 UIView objects into a nib that is owned by a ViewController. The UIView objects are of type MyView and are wired back to their respective properties in the...
I've inserted a UITableViewController and it's corresponding UITableView into a simple IB document. The goal is to include the UITableView inside of a parent UIWindow (or UIView) with other "stuff" (anything really) adorning the table. Here's what that might look like in Interface Builder.
http://danharrelson.com/images/skitch/iphone-ta...
I have a toolbar with various image buttons, created in Interface Builder.
I'd like to be able to programmatically replace one of the buttons with an activity indicator when pressed, and then put back the original button but change its color from white to yellow when the activity completes.
Is this possible with an IB built toolbar or ...
I have been doing some iPhone app development for the past few weeks.
I am not a big fan of the interface builder - I just don't like tools. I prefer writing code for what the IB can accomplish.
I have been referring to various books, however most use Interface Builder to build apps. Can anyone recommend a good book which has little em...
Hi, my System library in Interface Builder contains no image or sound resources etc.
I am currently using the iPhone 3.0 SDK. If you have any idea what I can do to get the default media for Interface Builder it would be appreciated.
I am using the Snow Leopard Developer Preview incase this makes a difference.
...
Probably something simple, but I can't figure why I cannot resize a UIView in a xib in Interface Builder.
I created a new view XIB in xcode and in the size inspector, the width and height are disabled and grayed out to 320 by 460. This is strange since I can change the size for the other two views (associated with the other two tab bar...
In interface builder, I click on my tab bar controller and set the class of one of the tabs to Navigation Controller. This should set the this tab to be a navigation controller.
However, I get an additional bar at the the bottom like a toolbar. Is this normal behavior? How can I remove it?
...
I am trying to make it so that on one of the tabs there is a table view
Any ideas?
Thanks
...
I have a view which I built in Interface builder with a tableview and associated outlets etc, to display a list of items. Clicking on an item brings up the detail of that item.
I now want to build a very similar view with a list of the same kinds of items and some additional controls and different behavior on cell selection. In this cas...
I'm new to programming for the iPhone and i'm wondering: how extensible are the various controls? Let's take the button as an example:
can i change the background graphic?
can i make it grow larger when i press on it?
can i change the font?
can i use a custom font?
can i use a button graphic in place of text?
...
Hi,
I have a view controller and I want to host a UITabBar on it. When the user clicks on different tab items, I want to show different views. I have this working, but it's hard to maintain.
In InterfaceBuilder, I simply created all my tab views, hide them. In my project, when the user clicks on one of the tab items, I simply set the h...
Hey guys I'm relatively new to Xcode and one thing that has bothered me is that when I add a resource it gets added to the top level directory of my project directory. So for example, at the moment, all of my images are at the top level directory and it makes things look messy. I rather would've liked, for example, to have an images/ fol...
Interface Builder provides the ability to create non-view/controller objects in a XIB file. In the past I have used this feature to instantiate and wire-up small components that manage view components in the XIB and this seemed a fairly reasonable thing to do.
However, I was wondering what other legitimate uses there are for this featur...