I have a couple of view controllers that I want all to share a header status bar. This header view shows status of certain things in my app. I used IB to lay out the contents of the header view in its own xib, then also used IB to layout the view controllers, adding a placeholder UIView element in the view controller's xibs for when I lo...
I am loading as secondary view with its own xib file. I can load it fine, but cannot get the webview in it to load any content. I have another app where this proces works, but it is in the main view.
Here is the code I am using.
@synthesize webView;
- (void)viewDidLoad
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"...
I have a couple of custom NSBox subclasses called OuterBox and InnerBox. I've set up my view in a XIB and arranged the hierarchy like this:
OuterBox : NSBox
NSButton
NSBox
InnerBox : NSBox
...and some other views
The idea is that when the NSButton gets pressed, in an IBAction method, I want to get the superview of the ...
I went back to an old project and recompiled it for OS 4.1 succesfully and ran it. I was asked to add a fourth tab to the Tab Bar, but I could not set its class to the newly added ModelsVC.h/.m. [edit: because it did not appear in the class dropdown, but the other viewcontrollers were there.]
I moved the project folder to a backup folde...
Hey folks,
Say I have created an XIB for an icon view. I then want to embed a number of instances of this icon view in a different XIB container view by reference, so if I alter properties / layout in the original icon view XIB, the instances in the container view XIB reflect these changes.
Essentially, embedding by reference.
Maybe ...
Hi, I'm looking at a sample code from Apple; named 'iPhoneCoreDataRecipes' and found those 'en' files under DetailHeaderView.xib, RecipeAddView.xib and InstructionsView.xib.
Wondering what are they and their purpose.
Why just make one DetailHeaderView.xib file without the 'en' file?
please find the capture screen shot from the link be...
Aside from the WYSIWYG editor, what are the advantages of using XIB/NIB files over defining the layout in code in iPhone/iPad/iOS?
While I don't find XIB files much useful, many iOS developers do, which makes me suspect I might not know their benefits or how to use them properly.
...
This seems like it should be easy yet I must be missing something. I have a document-based application. I have also built a new XIB that has a NSTableView and three buttons on it that I intend to display a list of previous files. I wish this XIB to be displayed instead of the document window when the application first starts. Once th...
Im wondering what I am doing wrong:
Create xib and add on it UIView "FirstView".
Under this UIView "FirstView" add another UIView "SecondView".
On the FirstViewController load SecondView from nib.
it works at this point. Whats not working is that the "FirstView" doesnt seem to change after point 3.
So the "SecondView" is properly loa...
Situation:
I am starting XCode, creating a new project for the iPhone (view application) and loading the XIB file into the IB. I manipulate the view (adding a label with the string "hello"), save, build, run the application, everything is fine.
Now i am localizing the XIB. What i do: right-click on the xib-file, adding the desired langua...
Hi Guys.
I am strugling on the following task.
I am trying to control my subview from another viewController class.
What I did and does not work is this.
I inserted an object and changed it class to my second viewController class.
Then I connected its UIButton outlet to a button I have on my subview.
I then connected the buttons ...
Does anyone know the rules for default nib loading of iOS View Controllers? Specifically what naming conventions are supported by -[UIViewController initWithNibName:nil bundle:nil]?
The docs, quoted below, don't seem to indicate any special magic in determining the name. However I have determined that there does appear to be some magic ...
I am trying to create a custom view and load it into a window.
In the end, I know there will be a few steps to follow, reflecting the key relationships that I am missing. I am hoping someone can explain, in a series of steps, how one creates a view object, view controller, associated .xib, and then loads it into a window (after clearin...
I have an app which displays 10 images and each image is associated with a button and a URL link. I would like to release this app, but be able to update the images and links via the web without needing to do an update to the app.
I know that I can pull images from the web like so:
NSURL *url = [NSURL URLWithString: @"http://example.co...
I have a project where where i have one ViewController and two xib files. I have two buttons on a view which is shown in the viewcontroller. Both buttons are active and returning a NSLog so i know they are working. Basically I would like to load a xib when the button is pressed. I have a view setup in each xib.
Thanks for your help in ...
This seems like such a basic task, but I'm stumped.
How, in Xcode, do you execute a textual search though (the XML contents of) all the .xib files in a project?
For example, all of our .xib files contain this string on the second line: com.apple.InterfaceBuilder3.CocoaTouch.XIB. So I'd think that searching all project files for that st...
I've just discovered multiple xib for languages ui support, I'm very excited because is simpler than I expected.
Now I was wondering if it's possible to apply same method to have multiple xib for different orientation simply creating different folders in project containing a xib with the same name.
...
I have two UIViewController subclasses, A and B.
In A.xib I have embedded a "B" UIViewController, set its NIB Name as "B", and attached its delegate and IBActions to the File's Owner, which is an A.
In B.xib I have defined a view and attached its various IBOutlets to the File's Owner, which is a B.
In the graphic you can see the two X...
I have an UIViewController class with two labels and a UIImageView set as IBOutlets, and I have this outlets connected in my xib, I have double checked they are connected properly, however when I check the their value in the debugger they are 0x0 so I cant change them programatically. Any ideas on what I might be doing wrong.
Heres the ...
hai
Initially I created UITableViewController class without xib file but now i need Xib file for some action on tableView. here i can't link the new created xib file with UITableViewController Class. please help me for this issue. how can i make the link between xib and class.
...