I'm rotating a view that's placed in Interface Builder using CGAffineTransformMakeRotation, but even though I have the anchor point set to the top left in Interface Builder the rotation still happens around the center of the view. As a crappy work around I am setting the anchor point upon startup and then repositioning the view, i.e.:
[...
I don't know how it happened, but all of a sudden in my table view I can't make an empty selection anymore. Like a table view row always has to be selected, and it can't be deselected by clicking somewhere else in the table view. I can select a different row, but I can't make an empty selection.
In the Interface Builder attributes for t...
i'm having problems working out how to get a custom nsview to communicate that something has happened to my main controller class.
the controller class has an instance of mapView like this:
IBOutlet MapView *mapView;
which is instantiated through interface builder, and in my mapView class, i'm getting mouse clicks like this:
- (void...
I'm using openAL to play audio files. I'm using a uibutton to play an audio file. I access this play method that loads and plays the audio file from an object called oalPlayback. I have connected this button and method in interface builder by dragging the object into the nib /xib window. I then shift drag the button to the object to a...
In interface builder and finder, there are windows with a status bar on the bottom of the window that has a neat greyscale effect. What is the correct/proper way to achieve this affect?
Is it a built in interface element or is it done by embedding an image?
...
I have been reading up on File's Owner here on Stack Overflow and a few other resources, but I was left with one question. When do I not need a File's Owner for a nib? In chapter 8 of Exploring the iPhone SDK (a great book by the way) you design a table view cell nib. The author says the following:
You might be wondering why we're not d...
In iPhone OS 3.0, you can set the toolbar items of a UINavigationController using the setToolbarItems:animated: method. However, this requires you pass in an array of UIToolbarItems. While I could programmatically create these toolbar items, I'd rather create them in Interface Builder if possible.
With this in mind, I have created a UIT...
I'm building a toolbar that I want to look at least somewhat like Preview's. I want to create the Previous/Next buttons. The way I THINK it's done is with a segmented control, each has an image in the control. The problem is that I can't figure out how to get the labels underneath. I can get ONE label centered under the whole thing, but ...
I get a crazy error and I am unable to see why it happens.
I have made a simple app that uses a TabBar to navigate 3 views. I created everything and added one UIImageView to each of the 3 ViewControllers that the TabBar manages. Everything works fine. In the app you are able to navigate the 3 views and see the 3 images.
Now I add one UI...
i have following buttons in my application.
Now i want to set equal spacing among all buttons.
Suppose If I am using corelDraw or Photoshop, there is always an option for align & distribute.
Here I need to distribute my objects vertically.
How is that possible in interface builder of iPhone?
Sample image is given below, in which dis...
Hi,
I'm trying to create a very simple selection list widget based on NSOutlineView. However, I'm having a hard time figuring out how to display an icon and a label right next to it, which is really the expected behavior in all the mainstream implementations of that kind of widget out there (iTunes, mail, Finder,...).
So far I am just ...
I'm fairly new to Cocoa. I was talking to my brother, who's put together a few iPhone apps, and I said something about Interface Builder. He said that he doesn't use it - he builds his UIs programmatically. He said that this way, he doesn't have to worry about loading the NIB. I understand that using Interface Builder actually creates in...
Hi, I want to know how to enter baseball stats manually in a table like hr, RBI AVG with tabs and all that. Is there a table that i can use for my iphone app? I want to use a navigation table and link to a table with the stats in it.
...
I had upgraded my OS into Snow Leopard, and I'm using Xcode 3.2 with iPhone SDK 3.0 for Snow Leopard.
I had cleaned up the existing Developer Tools, uninstall, and I deleted the /Developer directory, and I reinstall.
But, the problem is, Interface Builder is showing 3 pop up alerts with this message:
Assertion Message: Interface Build...
I'm getting back in to Cocoa development on the Mac after a long stint doing iPhone work. My previous experience with Cocoa on the Mac has just been dinky little tools. I'm looking to build something serious.
Looking at a modern Cocoa application like iPhoto (or Mail or Things or....) many apps use the Single-Window, Source-List based a...
I've got a UITabController. One of the tabs is a UINavigationController. Pushing and popping the navigation stack works just fine. Every UIViewController has his own NIB with just the UIView hooked up. But unfortunately I only get a title displayed for the root navigation controller!
Usually when creating a UIViewController in a NIB you...
I have created a simple UIView hierarchy in IB:
Parent (UIView)
child (UIView)
child (UIView)
child (UIButton)
The button sits atop the two sibling UIViews.
My app launches in landscape mode rather then portrait. When the only child view is a UIButton, the button correctly rotates 90 deg. However, when I add the child UIViews th...
I have a beginner iPhone project going. I have a TableView, which is just a listbox with a bunch of entries and a small UiView on the bottom. See the pic.
The problem is that the UiView essentially becomes part of the listbox and will only appear when I scroll down to the last item in the TableView.
I'd like the UiView to be anchored...
Hi Guys
I am writing a app which has about 10 nib files for conveying different UI messages and for taking user input. I want to know how to localize these messages that appear on my custom sheets. Is there any way i can have a single file with generic strings and depending on language it replaces the generic string with string in that ...
I wanted a control like the UISlider, but with two thumbs instead of one so you could specify a range instead of just one value. I read up on other people looking for the same thing and suggestions about making new controls were over my head.
So I decided to setup what I wanted in a nib and then created a view controller to handle its b...