interface-builder

How to add to Interface builder classes in a static library, permanently?

Hi, all. I know the thread on http://stackoverflow.com/questions/1058766/interface-builder-cant-see-classes-in-a-static-library there add to InterfaceBuilder(IB) classes in static library, temporary. The way is drag & drop the header files(.h). It's working in one time booting the IB I wanna permanently add to IB the classes. How to d...

Interface Builder is unable to open documents of type CocoaTouch XIB

I just installed the laster XCode and iOS SDK and I keep getting the following error when I open a XIB file. "Interface Builder is unable to open documents of type CocoaTouch XIB." ...

To release or not to release a button (whose content is loaded from a nib), that is the question...

Hi, I have a very classical class which contains buttons and label, etc... : @interface ExerciseViewController : UIViewController { // Hardcoding for outlets to XIB file // Outlets can be passed only as singe variables in Interface Builder. // Therefore, we can only declare stupid variables, not arrays of buttons. // Bid array // La...

iPhone Radio program with VU Meter

Fellow coders, I wrote an iPhone app that plays wma stream, using libmms and ffmpeg open source libraries. The app has already been approved by Apple and is available for download, free of charge. Now I'd like to have a VU meter on my app. I'm using the avTouch code sample, downloaded from Apple (https://developer.apple.com/iphone/lib...

Prefix.pch error in Xcode

I get the following error in Xcode, when building project. Can someone help me fix it? #ifdef __OBJC__ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #endif with this error: Prefix.pch:6:38: error: Foundation/Foundation.h: No such file or directory Prefix.pch:7:28: error: UIKit/UIKit.h: No such file or directory ...

UITabBarController never calls initWithNibName on individual tabs?

Is it true that UITabBarController never calls initWithNibName on its child views (individual tabs)? Or have I just set my app up in a really screwed-up way? My MainWindow.xib looks like this in interface builder: Note that the Window is completely blank while all the action happens in the Tab Bar Controller. My app delegate calls...

Handling Touch Event in UILabel and hooking it up to an IBAction

Ok, so I have a UILabel created in interface builder that displays some some default text of "tap to begin". When the user taps the UILabel I want it to trigger an IBAction method: -(IBAction)next; which updates the text on the label to say something new. It would be really convenient if this allowed me to simply drag a connection from m...

getting values from NSTextField in objective c and xcode

How can I continuously get data from an NSTextField and do this in the background? I'm doing this because I'm using a quartz composer plugin to get posted values in an NSTextField. This is within the same app. Any ideas?? Elijah ...

Show/Hide iphone UI elements based on prefs - how to?

I've got a simple form in my iPhone app. The form is laid out and managed via IB and the typical wiring (i.e. I am not creating this form programmatically). One of the fields (and its associated label) should be shown only if a particular preference is set. I could set the field and label's alpha to 0 and disable them in this case. ...

Objective C NSTextField keeps text in box highlighted when command is sent

When I press enter on an NSTextField to send what ever's in the text field, it sends it, but highlights what ever's in the NSTextField. Does anyone know how to make it so that once it sends the command in, it deletes what ever's in the NSTextField? Thanks, Elijah ...

tableView:cellForRowAtIndexPath: lazy loading problem

Hiya, While implementing TableView I've stuck with the problem that I somehow has broken "lazy" loading behaviour of UITableView. Now upon entering the screen it loads all the cells (both visible and invisible). Could someone point out where I should look at? In IB I have such an organization: -> UIView --> UIScrollView ---> UITable...

insert UIVIewController2 into UIViewController1 why UIViewController2 does not respond my touch?

i have create ViewController1 and ViewController2 and link view of ViewController2 to load in ViewController1 with Interface Builder it show ViewController2 correctly but it does not respond my touch ? how to fix it? ...

ibtool error Couldn't open shared capabilities memory GSCapabilities (No such file or directory)

I'm using ibtool to localize nibs. I exported string files, translated them, and now trying to apply translated strings back to the nibs using ibtool once again. It works for the most parts except that for some files (about 25% of all nibs) I get the following error: Couldn't open shared capabilities memory GSCapabilities (No such file ...

How to fix dead links in Interface builder

My app was all linked correctly. I launched it today and had a look at my 2 additional view, and their links are broken. It says the view is not defined in the class anymore, as well as one method I have still there is not being seen by interface builder? How can these links be fixed? ...

How can I modify an existing UIViewController to allow scrolling?

I have already built a UIViewController subclass with a bunch of controls in it, and just realized that if I rotate the iPhone, half of the controls become invisible. So, I would like to somehow make the UIViewController's UIView scrollable so that when the device (or the Simulator) rotates, the user can scroll the view to see all the co...

Creating classes and IBOutlets in Interface Builder (XCode 3.2.3)

I normally create classes and IBOutlets in XCode. However I saw a video where someone created a class and the IBOutlets in Interface Builder and the files and outlets were automatically inserted into the source code seen from XCode. They were using an older version of XCode. I tried doing this, but when I went back to XCode, I didn't see...

Xcode Interface Builder wont start

Hi, complete iPhone Apps developer newbe here :) I have a relatively confusing problem: namely, I created several empty Xcode projects and ran the iPhone and iPad emulators just to see what happens and everything is fine, empty, but fine. However, then I decided to actually add some content BUT when I double click my .xib file nothing h...

20px gap between top of ImageView and bottom of status bar after returning from iAd animation

I am using IB to place a UIImageView (top) ADBannerView (bottom) and within the same View. When running in the Simulator, if I click on the ad, after dismissing the ad screen, the UIImageView is pushed 20px down, leaving a gap between the status bar and UIImageView. I've tried playing with all of the AutoResizing settings in the Inspec...

difference between presentModalView and addSubview?

When revealing a new view, what are the differences between these two and when would you use each? Also, what's the right way to nest views. for example, I have a UIImageview that animates onto my view and it has a button on it. I want to put that image and the button in their own view, then simply animate the view and have both handled...

Interface Builder(User Interface Designer) for Android

I am working on Android since last 7 months....Also knowing brief about I-phone application. In Android, There is a bad layout editor in Eclipse, but it's neither good nor User Friendly as I-phone Interface Builder is. Is there any visual designer that would be on par with the iPhone "Interface Builder" ? Ya, DroidDraw is there but n...