how do I make sure that UIInterfaceOrientationPortraitRight and UIInterfaceOrientationPortraitLeft are not supported.
Basically I want my application to be used ONLY in UIInterfaceOrientationLandscapeRight and UIInterfaceOrientationLandscapeLeft
I edited the Info.plist file
<string>MainWindow</string>
<key>UISupportedInterfaceOrient...
I have a UIView with an UIImageView dragged onto the view. All of a sudden, for all my xibs, the image no longer shows up. There is a blue X. However, when it builds, the image is there.
At one point, I deleted and regenerated all my images and moved some into a subfolder in Xcode. Normally, when you go to select an image for an UIImage...
Hey guys,
Although I've searched the Board and used google, I didn't get any useful results.
I've trying to make a subclass of UIView loading its view from a xib file.
My approach is the following:
1. Creating a subclass (named mySubclass):
@interface mySubclass : UIView {
}
@end
Creating a view through:
Add New File...
User Inte...
I've setup some background colors for my Labels in order to position them. Now that they are well in place, I vould like to reset their background color to none, or clearColor.
But I don't find any way to achieve this in IB, I don't gind any "no color" color...
Any way to do this without re-coding color at runtime?
Thanks,
Jérémy
...
I have a tableview that my app shows when it loads, I would like to somehow put a banner at the bottom that if connceted to the internet will check my server for any new image files and if there are it will replace the current one and if not it will just leave it. That way I can constantly display messages to my users - sort of like in D...
I'm trying to create an vocabulary study application using Obj-C and the Cocoa frameworks. I have about two week's experience in both areas and have reached an edge of my current knowledge.
Here's where I'm stuck. When I press a checkbox, a corresponding plist is loaded into memory as an NSDictionary. I want to generate a "Label: Textf...
How do I create a button with an images for normal & highlighted states in interface builder for cocoa application? I need a button like custom button in cocoa-touch and provide a graphics for default and highlighted states. Again, it's for pure mac application not for iPhone.
TIA
...
I've created a sub class of UITableViewController named LoginViewController with the XIB file using XCode. Then I opened the XIB file with IB and set the table's style to grouped. Finally I wrote the following code:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
LoginViewController *loginViewController = [...
I just want to confirm that I'm understanding correctly, in Interface Builder the Class set under Class Identity (listed under Type in the name.xib summary window) is the class of the view whereas in IBOutlet Class *viewName the class listed describes the nature of the connection to Interface Builder, is this correct?
e.g.
Name________...
In developing a few CoreData applications, I've found the automatic UI prototyping extremely useful while experimenting with the CoreData model. By automatic UI prototyping I mean selecting a CoreData entity in XCode and option-dragging it to a window in Interface Builder.
This brings up a dialogue box in IB allowing me to select some o...
greetings!
I've seen apps (e.g. meebo) that have different indicators on UIPageControls instead of the default white circles.
is there an easy way to do this? I've read the docs for UIPageControls and it seems that there is no methods to replace the images.
thank you
...
What this error indicate?
...
Hey,
I've been working on a Cook Book App but each view ( or recipie page) takes about 45 minutes to complete so as you can imagine its taking forever.
The problem is that I have to manually:
Set up a gradient image for the back ground (Somtimes I have to add a few image backgrounds to fit the view as I often use a scroll view, not s...
When I double click the XIB file in Xcode, Interface Builder typically launches a few different windows, one of which is the View window. For some reason, however, the View window isn't opening for one of my XIB files. If I open any of the other XIB files, however, the View window does open.
I'm not sure if there's a way to manually lau...
I have a UILabel:
descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(200, 30, 130, 150)];
[descriptionLabel setFont:[Utils getSystemFontWithSize:14]];
[descriptionLabel setBackgroundColor:[UIColor clearColor]];
[descriptionLabel setTextColor:[UIColor whiteColor]];
descriptionLabel.numberOfLines = 0;
des...
If a UILabel contains too much text, how can I setup my label so that it shrinks font-sizes?
Here is how I am setting up my UILabel:
descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(200, 30, 130, 150)];
[descriptionLabel setFont:[Utils getSystemFontWithSize:14]];
[descriptionLabel setBackgroundColor:[UIColor cl...
1 if (cell == nil)
2 {
3 [[NSBundle mainBundle] loadNibNamed:@"TVCell" owner:self options:nil];
4 cell = tvCell;
5 self.tvCell = nil;
6 }
There's some code from an Apple example of using your own "custom cell XIB" to create cells in a UITableView.
It appears to work... but I think I would do better to actually UNDERSTAND wh...
I have converted a very simple iPhone app to Universal app. Now I need to customize the view on the iPad to use a higher resolution image for the background, move and resize some labels, etc.
How can I do it without changing the iPhone version? I can see that there is a new MainWindow-iPad.xib, but when I open in IB, it looks empty.
Th...
hi,
is it possible to design a view in interfacebuilder and use it dynamically a few times?
the view structure is
- UIScrollView
- UIView
- UIImageView
- UILabel
now i want to dynamically create multiple instances of the UIView in a for loop with different UILabels and UIImageViews. I want to give them side-by-side in the...
hi,
i made a second uiview in mei .xib file. the first view is landscape and i get it by following code
ItemController *newItem;
newItem = [[ItemController alloc] init];
newItem.view.....
how can i "activate" the second view, so i can use it with
newItem.view2...
is that possible? the second view is portait mode, so it should be h...