interface-builder

How to programmatically alter object created in IB

Hello, I've placed an image in my UIView with IB. How do I move this image around, resize it, etc programmatically? I cannot figure out how to reference it from my code. Thanks a zillion. ...

Should I use interface builder or not?

I'd like to know more about the pros and cons of using interface builder when developing iPhone/iPad apps. I've written a fairly complex and customized app that's on the app store right now, but all of the interfaces are hand coded as they are fairly complex. I've customised the navigation and tab bars with backgrounds, table view cells...

UINavigation Controller and UITabBarController toggling

Is it possible to do this? In my appDelegate setup both a UINavigationController and a UITabBarController. Initially my UINavigationController is added to the subview with a root view. In my RootView when the user clicks on a certain button, it will remove the UINavigationController from the subview and will add a UITabBarController w...

Newbie: UINavigationController is pulling me back from further learning :(

I have created a window-based application and my problem is I am unable to create UINavigationController on the go. InFact I don't know how to do that. My AppDelegeate - (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customization after application launch [window addSubview:logInVi...

Loading an image sequence in InterfaceBuilder -ObjectiveC

Hi Using Actionscript and or in the Flash IDE you can either instantiate bitmaps from the library, or simply import bitmaps into the timeline of a MovieClip to create an image sequence. How would you do the same thing in InterfaceBuilder and-or using ObjectiveC? Do I need to create a new view for each and every image? ...

Binding value for NSTableView, but tooltip gets set as well

I've set up an NSTableView in Interface Builder to be populated from an NSArray. Each value of the array represents one row in the table. The value is bound correctly, but as a side effect, the table cell's tooltip is set to the string representation of the bound object. In my case, the NSArray contains NSDictiorany objects and the tool...

[iPhone app] Dynamic text field

Hi, I am actually developing a view with a text field that I want to be dynamic. Was dynamic means ? It means, when you type something in it, there is a suggestion list populating beside the text filed. I have already coded that, and it works fine ! Representation of what I have right now : [ text field ] [ OK Button ] [ sugge...

How can I write cocoa bindings as code instead of in the Interface Builder?

In my modell got an NSMutableArray that keeps track of a changing number of elements. In my view I got a NSTextField that shows the number of elements. The view gots unarchived from the nib file and alloc/inits the modell. Therefore it knowns about the modell and the contained array. I established the connection as follows. In the Inter...

Interface Builder - Custom Button with Title text

When I set up a custom button in Interface Builder it hides the Title text. Do you have to create the text for the button too or is it possible to change the Z order so that the Title appears on top? ...

iPhone: “Unrecognized Selector Sent to Instance” Error

I’m trying to implement a partial overlay modal in my app with the code from “Semi-Modal (Transparent) Dialogs on the iPhone” at ramin.firoozye.com. The overlay functionality works and it slides the modal into view, but calling any IBAction from the modal's controller causes an “Unrecognized Selector Sent to Instance” crash. I recreated...

Referencing a View from another View in InterfaceBuilder

Is it possible to position a view defined in a XIB as a subview in yet another view in that same XIB file? Alternatively, is there a way the "subview" can be defined in another XIB file and positioned in the first view in a different XIB? I've figured out how to do this for UIViewControllers but not for UIViews. Has anyone figured out ...

Can a UINavigationController contain a UITabbarController?

I want to have a UIView inside of a NavigationController that has 4 buttons. Clicking on any of these 4 buttons will push a UITabBarController that contains a NavigationController with a respective UIView. Is this possible? Tweetie seems to do something similar. ...

What is the difference between UITabBar and UITabBarController?

What is the difference between UITabBar and UITabBarController? When is it more beneficial to use one over the other? ...

UITabBarController does not appear in view

I have a UIView that is pushing a UITableViewController that is contained inside of a UITabBarController. #import <UIKit/UIKit.h> @interface ARViewController : UITableViewController<UITabBarControllerDelegate> { IBOutlet UITabBarController* tabBarController; } @property(nonatomic,retain)IBOutlet UITabBarController* tabBar...

Is it possible to get the More Tab Item with a UITabBar?

Is it possible to automatically generate a More button with a UITabBar when there are more than 5 on screen? UITabBarController can do this, but I would like to use the UITabBar. ...

How to add a subview to a UIViewController?

I am trying to add a UITabBarController to a UIViewController: [self.view addSubView:tabBarController.view]; I get a warning: warning: 'UIView' may not respond to '-addSubView:' How can I add a UITabBarController to my UIViewController? ...

How to set view outlet?

I have a UIViewController that contains a UITabBarController which is loading a UITableView from another nib. The TableView view is set to files owner. How can I set the view property in the UIViewController that contains the UITabBarController? ...

UITableView throwing exception

I am getting the following error on a very simple UITableView: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x5d73210' Here is my code: #pragma mark - #pragma mark Table view data source - (NSIntege...

Load different initial view based on application preferences?

I have a preference that, when set, forces my application to perform some synchronization on startup. Can I use IB to display a different initial view based on this setting? Is there a standard way to enable this behavior? ...

How do I get the MapView control to fill the view

Changing Mode: Scale to fit has no effect on the MapView? ...