interface-builder

TableView is not adding more than 2 TableCellView

I have added a TableView using interface builder. Now i am trying to insert TableViewCellView into that TableView. Its just allowing me drop 2 CellView from the Library. As soon as i dropped 3rd CellView, it put it outside the TableView. what i am doing wrong? Following this tutorial http://iphone.galloway.me.uk/iphone-sdktutorials/cus...

associating TapDetectingView UIView subclass with UIView object created in IB?

I know this must seem like an extremely basic question for most iphone devs, but so far have been putting all my code logic into a single view controller, and want to start making better use of delegates, breaking up my code into logical components. I have a simple ViewController based application and want to add tap detection. There is...

Making an grid of an UIImageView

Hi, I don't know if this is possible, but I guess it is. I have a tableview with custom cells. These cells have a UIImageView as background. But because the size of the cell is relative I would like the image view to adapt its size. This is now problem, I can define that in the Interface Builder. But I don't want the corners of my ima...

iPad Frame programmatically doesn't match with IB???

Hi everyone, I'm trying to draw 2 UITableViews programmatically on a landscape iPad. I drew it first in IB to get the values for x, y, width and height from inspector, then programmatically i create CGRects with this parameters, but the final result is not what I saw in IB. what units uses CGRecktMake to measure the frame? The UITable...

iPhone Checkboxes à la Mail

After reading the iPhone Human Interface Guidelines, I notice there's little mention of checkboxes in the style that one may encounter them on the desktop or web. Checkboxes are generally handled by UISwitchs on the iPhone, but for an app I'm presently working on, they're really not the right control. Instead, the control you'll see in ...

Grouped tables just for layout in IB

Hi, I'm new to Interface Builder and Objective-C. I'd like to layout an iPhone interace in IB similar to the "edit event" or "edit contact" in the native iPhone apps where Grouped Tables are used. It seems like i have to add several very generic-looking Grouped Tables in IB, and then write a bunch of -cellForRowAtIndexPath: and numberOf...

pattern for filling uitableview from results of async nsconnection call

Hi, I'm struggling to understand the correct model. I have a uitableview full of rows of data. The data is the result of a REST call, which depends on the result of a previous REST call. So in my appDelegate didFinishLaunchingWithOptions: method I'm making an NSURLConnection for the first REST call and then getting the results back in ...

UI Binding Similar to MonoTouch.Dialog

Is there a way to use MonoTouch.Dialog or similar to bind domain objects to Interface Builder / MonoDevelop generated outlets? I love the reduction of glue code but I still want to design my forms in IB for aesthetic reasons. ...

Populate UILabel text without linking an IBOutlet

I want to fill several UILabels, on different UIViews created with IB, with the same text. Now I'm doing it connecting each label with an IBOutlet and filling the text programmatically with a constant string defined on a constants file. What I want is to avoid the connection with an IBOutlet so I can link the desired string token in IB...

When to use InterfaceBuilder to build views?

Hi Going thru both the extensive online documentation AND the various code samples in the dev center I am perplexed. Apple's recommends to ALWAYS use IB when creating your views, and yet, in many of the code samples, views are created entirely in code (initialized in the loadView method of the viewController). Is there a 'best practice' ...

Interface builder bindings only working in one direction?

I've got an XIB window that I'm working with in Interface Builder. It has an NSScroller and 4 popups. The controller class has a float and 4 ints. I bound the scroller to the float and the pupups to the ints, binding the value of the scroller and the selected index of the popups. When I move the scroller, or change the popup selectio...

How to code a Shart/Graph Control in iOS?

I'm looking for a tutorial that shows me how I can create a custom Control for iOS, that draws Graphs. For example, something like in the Stocks App in iOS. Yes, there are many Chart Libraries out there but I find them really complex to learn the code and I just want to learn how I create such a graph myself in Code and how to create a C...

Using NSSegmentedControl with CoreData

I have a Core Data app that works to add or remove one of a Client's many Appointments with buttons bound in IB to my appointments ArrayController. The appointments content is derived from whichever Client is selected in a feed list. I wish to use a SegmentedControl, and as far as I could tell, this requires I programmatically add and r...

How to create multiple windows with the same nib file in xcode

I have an iphone app that uses table view as the interface. Each time that the user taps on one of the table cells, I want to show another window to the user. However the user interface of the window that I push into the navigation controller are extremely similar. Therefore I decided to make a "generic nib file" to be used across all th...

Row selection when dragging over a UITableView with scrolling disabled

If one were to create a standard grouped table view consisting of two rows and then touch down on the first row, the cell would highlight. If one were to then drag one's finger down, the selection of the row cancels, and the table view begins to move with the drag. Imagine the same situation, but with table view scrolling disabled via t...

Customising UITableView

Hi all, I'm playing with Xcode/Interface Builder and I'm able to build simple Navigation apps. I'm wondering how the guys at TapBots manage to get their table views themed like this: http://tapbots.com/img/software/convertbot/screenshot_05.jpg (http://tapbots.com/software/convertbot/#gallery) I've tried setting backgrounds on tables, b...

iPhone UI design...!!

Hi All, I have seen apps in App Store that have really attractive UI.When i make an app i use only the default set of control provided by Interface Builder and my app(even though good in functionality)does not have a UI that can attract people.Is there any ref or sample code that teaches us how to design good UIs for iPhone apps. Also...

dismissing Number Pad.

Hi All, In my app I have a text field that takes some number input from user so i set the keyboard type to "Number Pad"but now i am stuck as to how should i dismiss it when user finishes giving input . i know i have to use the delegate method "textfieldShouldReturn" but the problem is that number pad dont have a return key.so is it nece...

setting target for a UIButton which was made in IB

I have a UIView with a bunch of buttons in it (something like 200 of them)... The view was set up in IB so I would have to manually wire every button with a single handler... I'm trying to traverse the subviews of the view, looking for buttons and then set the button's target programmatically... which results in a crash (I get the comp...

Stanford's initial assignment not working

Hi - Stanford put out for free a series of videos and handouts for their iPhone programming course. I've played around with the first assignment, but all I get on the Simulator is a blank screen. Here's the recipe I followed; what am I missing? In Xcode, create a new Window-Based iPhone application. Open the project’s MainWindow.xib f...