interface-builder

Monotouch Classes

What does MonoTouch.Foundation.Register do? For example: [MonoTouch.Foundation.Register("CalendarDayViewController")] When do I have to add the above? For a .xib to recognize it? Or in place of a .xib? ...

IB pushing view up or down

Hi All, I have a quick question I'm hoping someone out there might have an answer for. I have a tab bar app that I have built that has navigation controllers on tabs 1 & 2. The first tab appears to let my view slide underneath of the navbar at the top, while the second doesn't. The second tab is a favorites section where I am allowin...

In an iPad SplitView, how do I add a Date Picker control to the Root View?

I'm diving into iPhone OS development on the iPad and one of the things I'm playing with is the SplitView template. The template provides a window with a UISplitView view, containing the Root View (on the left of the window) and the Detail View (on the right of the window). The Root View is a subclass of a TableView. Rather than havin...

How do I resize my view in horizontal orientation?

In portrait orientation my view is 744px in height. I want to change this height when it is in landscape view. How can I do this? ...

Can a tab bar controller added to a uitableview?

I have a View that contains a UITableView and a UITabBarController. I have set my IBOutlets, but the UITabbarController does not appear. Do I need to do anything else to allow it to appear? Note: I don't want the tab-bar to be displayed throughout the entire application. Only on one specific view. ...

NSSegmentedControl -selectedSegment always returns 0

I have an NSSegmentedControl with two segments set to "Select None" mode in Interface Builder. No matter what I try, I can't get -selectedSegment to return anything but 0, even though segment 0 is even disabled by default and can't possibly be selected. Here's the relevant function that gets called when you click any segment on the contr...

Showing/Hiding windows iPhone Dev

In my iPhone app I am developing, I have defined two windows: @interface The_NoteAppDelegate : NSObject <UIApplicationDelegate> { IBOutlet UIWindow *newNoteWindow; IBOutlet UIWindow *homeWindow; } @property (nonatomic, retain) UIWindow *newNoteWindow; @property (nonatomic, retain) UIWindow *homeWindow; and they are linked correctl...

App Store Featured Summary View design

How has Apple designed the View that you get when you look at an app summary in the Featured section of the App Store ( http://i44.tinypic.com/20gfgjr.jpg ) ? There seem to be 2 ways of doing it: Using a UITableView and then creating custom UITableViewCell items for each row Using a UIScrollView and then adding UIView subviews Any r...

Why is my app delegate's didFinishLaunchingWithOptions method all of sudden being called AFTER my RootViewController:viewDidLoad method?

Hi. I've been playing with the iPad's SplitView template in Xcode. Here are two of the many important methods that are auto-generated for you by the Split View-based Application template... AppNameAppDelegate.m #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpt...

UITextView inside UIScrollView is not First Responder

I have a UITextView on a View that becomes the first responder. When I embed the UITextView inside of a UIScrollView in Interface Builder the UITextView is no longer the first responder. I am not sure what has changed? I would like the UITextView to become the first responder. - (void)viewDidLoad { [super viewDidLoad]; [scroll...

How to make modal view scrollable?

I have a modal view with a textview and a button. When the keyboard is displayed it covers up some of my UI elements. I'd like my modal to be scrollable so that it can be viewed while the keyboard is displayed. How can I do this? ...

Background Image w/Quartz Drawing

I'm using Quartz to do some basic drawing. I recently decided I wanted a background image for my app. So I went into my XIB file and added a UIImageView and set the background, looks good. However, when I run it, the Z-Index of the image is above my drawing. I googled a bit and found that you can do Layout > Send to Back in IB...but ...

Conditional interface programming for iPad?

Hi everyone! I'm working on an app for the iPad and am a little over my head with one issue. Is it possible to build an app for iPad that uses a function to control which interface layout is displayed? Something like "if these parameters are met, use XIB file "a" else use XIB file "b". I know that's not in any kind of legitimate format, ...

Creating a window from a menu item

I would like three menu items on the menubar with the keyboard shortcuts cmd-1, cmd-2, cmd-3. This I know how to do. Each menu item would open up a different window (win1, win2, win3). I want it so that only one instance of each window is permitted to be open at any one time (i.e. only one win1, one win2, etc). How is this best approa...

commitAnimations is not resizing my UIImageView subview

I have created a UIView as a subview and to that subview I have added a UIImageView as a subview. UIView *viewCreated; UIButton *buttonCreated; UIImageView *imageViewCreated; CGRect myFrame = CGRectMake(0, 0, 1024, 1024); viewCreated = [[UIView alloc] initWithFrame:myFrame]; [viewCreated setTag:intTag]; viewCreated.backgroundColor = [UI...

How to organize XIB files with many overlapping elements?

I have some XIB files which are very difficult to edit because many of the subviews overlap each other completely. For example, if I position a popup volume slider where it will pop up, it covers some UILabels which become impossible to click. My only chance to be able to edit them is to double-click on them in the Document window tree, ...

UINavigationBar height

In my app I work with an UINavigationController. I've added it to the window (MainWindow.xib, with IB) and simulated on my main view (in IB: Simulated User Elements / Top Bar / Navigation Bar). Navigation bar is displayed, but its height isn't standard. At least in IB it is bigger than in launched app. What's wrong? And how can I resto...

Struggling With NSWindowController window Outlet

I'm sure this is a really simple problem but I am pulling my hair out over it! I have a subclass of NSWindowController called WinAController. This has been created in IB and is in MainMenu.xib. I have a separate nib called WinA.xib that contains just a single window. In this nib, I have set the following: Class of File's Owner to Win...

Selected state of custom UITableViewCell

I've got a table with custom cells brought in from an IB file. Cell is created like this: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"MyIdentifier"; MyIdentifier = @"BasicCell"; BasicCell *cell = (BasicCell *)[tableView dequeueR...

UIButton stops responding after going into landscape mode - iPhone

I've been trying different things the last few days and I've run out of ideas so I'm looking for help. The situation is that I'm displaying my in-app purchasing store view after the user clicks a button. Button pressed, view is displayed. The store shows fine. Inside this view, I have a few labels with descriptions of the product, and th...