interface-builder

managing IB objects without iboutlets

i have got 24 buttons in my project.I need to manage them but I don't want to get my MainViewController polluted by 24 declarations of pointers, properties & synthesizes. i was thinking about using buttonPushed functions and do it like: > -(IBAction)buttonPushed:(id)sender{ > UIbutton *button=sender; >[buttons addObjectAtIndex:[sende...

iphone: Accessing Code for Elements Created in Interface Builder

I am attempting to create a basic tab-bar application using interface builder. I create a new project in Xcode selecting tab bar application. My question is how can I access the code that instantiates and pushes each of the views when the tab bar buttons are pressed? I would imagine that would be done by the tab bar controller, however ...

Why doesn't IB see my IBAction?

I've been staring at this for way too long. There's nothing fancy happening here, and I've done this dozens of times, yet Interface Builder steadfastly refuses to provide me an action target for -(IBAction)slideDirections. I'm at the point where I'm willing to post publicly and feel stupid. So let 'er rip. Here's my .h: #import <UIKi...

How to put a toolbar ontop of a UITableView?

I have a RootViewController that is loading a UITableViewController from an external NIB. I am not sure how I can add a toolbar to the RootViewController so that it appears on top of the UITableViewController? When I drag a UIToolbar onto my screen, it replaces the UITableView ...

How do I customize a table view?

Interface Builder Question I know there's a way to change the background color of a table, but is there a way to change the text color? Please Help ...

Converting a CGRect of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view

Hey, I want to converte a CGRect "aRect" of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view. The problem is that aRect is with respect to the subview in the table cell. But i want to make it so that it is with respect to self.view What i tried is this rect = [self.view convertRect:aRect.frame to...

How to set view outlet for a UIViewController that contains a UITabBarController?

I have a UIViewController that contains a UITabbarController which contains a UINavigationController. When I am setting up my IB outlets, what should the File's Owner view outlet be set to? ...

Is there a good UITabBarController Example?

Is there a good UITabBarController example where it is NOT created in the appDelegate? I would like to use a UITabBarController inside of a UIViewController, however dont know how to set the view outlet. ...

Is it possible to push a UITabbarController from a UINavigationController?

I have a UITabBarController that is loading a UINavigationController. When I push a new view controller, is it possible to change the UITabBarController to a new set of tabs? ...

Puzzled with nib files...

I know nib files are serialized objects and they have owner, outlets to make connections. Using XCode Navigation window template I created application, which in its order created 2 nib files - MainWindow and SecondView. I can't understand how MainWindow is referring to SecondView, there is no connection between those two as far as I can ...

How do I programmatically duplicate UIViews built in interface builder?

I want to build up a sub-UIView in Interface Builder (contained within a UIScrollView) with some UILabels contained, I then want to programmatically "copy" this view adjust its left position (by multiples of its width) to achieve a "floating" left effect inside a UIScrollView. I then want to add this copied UIView back into the UIScrollV...

Custom view in nib instantiated as parent type

I've created a custom class inheriting from UILabel. I placed a UILabel in my nib and set the class of the label to my custom class. However, when the viewDidLoad method is called, the view is of the class UILabel instead of my custom class. Any ideas? ...

Stack Info button above UIView in Utility App

I've started creating a iPhone Utility app (main view and flip view). I want to draw some graphics in the Main view, so I dragged a UIView object onto it. This works, but I find that if I resize the UIView to fill the Main view, it covers the Info button that invokes the Flip view. Is there any way to get the Info button to appear on ...

View outlet not set with UINavigationController

I have a NIB that contains a UINavigationController which has a UIViewController. The UIViewController is being loaded externally from another nib. I am unable to set the view property thus I get the error: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed...

Loading an external NIB, how do I set the view property?

If I am loading a view from another NIB, how do I set the File's Owner view property? IB is not letting me hook it up to my View Controller which is loading the external NIB. My NIB looks like this: File's Owner - Identity is set to LBRootViewController First Responder LBTableViewController - Identity is set to LBTableViewController,...

Application Design in Interface Builder Challenge

I want to design an app that launches other sub-apps. Main View will contain 4 buttons. Clicking on each button respectively will launch the other sub-apps. Each sub-app will have a UITabBarController which has its own different views. At any point I want the user to be able to go back to the Main View from any of the sub-apps. I am n...

Interface Builders backround color for the flipsideView won't show in the simulator.

I tried setting the color of the backround of the flipsideView in interface builder, but for some reason it doesn't show it in the iphone simulator. It always displays this dark crosshatching backround. How do I get it to display my selected color in the backround? ...

Adding Navigation Bar items to secondary view in IB

I work on an application that presents a UINavigationController-based interface with a root view and a secondary view. On the root view, I have configured the left and right buttons to two toolbar buttons. I would like to configure the navigation bar items on the secondary view in a similar way. I know that it can be done with some codi...

How do you specify a really large character in UIButton?

I have a series of buttons that have suit symbols on them. Currently I provide these suit symbols as bitmaps. In preparation for iPhone 4 I'd like to use text instead. However Interface Builder rescales the button to account for whitespace underneath the symbol so I can't get the image to fill the button completely. Any hints on gett...

Interface Builder wont let me rename the "View" class name to existing Class

FYI: Im following a tutorial from the book "Beginning iPhone Development", chapter 12. Here is the setup, i have a two files in the Classes folders called QuartzFunView.m and QuartzFunView.h (ie. a class called QuartzFunView). Now if i double click on my blaViewController.xib file, then click on "View" and in the Identity Inspector tr...