Hello,
I'm in the midst of porting a win32 app to cocoa. Wherever possible, I'm using IB, since... well its way easier in every way possible, obviously. One thing is the designer and the win32 dev set up all the button assets on a massive "sprite sheet" such you move around the viewport to determine button state. Similar to how yahoo do...
Trying to wrap my head around the apple design scheme. I have a UIViewController and the corresponding XIB file that has my main screen in my application. I want to have a button on this XIB that displays another "form" (this is my disconnect) in the foreground where the user selects from a myriad of choices, then it hides that "form" ...
Hello, I realize this is a painfully noob question but I just don't know what to do.
I'm trying to rotate my view in Interface Builder, and everyone refers to the rotate icon in the top right of the view.
My Interface Builder doesn't have this icon. See screenshot:
What am I doing wrong? Do I have to enable this in preferences or som...
I use a sheet with 3 NSTextFields and a Cancel- and OK-Button to edit the attributes of a Core Data Entity.
The text entered in the NSTextFields is only updated in the Core Data Entity if i press Tab or Return after writing in the NSTextField or if i focus another NSTextField with the mouse. If i just enter text in an NSTextField and pre...
I want to make an app that has buttons that when pressed, plays a sound. How would I add the sounds, and then use the Line thing in IB to connect them to a button?
...
Building an iPad app. I have a button on my main view that I want to launch a help window. The help window is fairly involved and has its own xib/controller. I resized the help window's XIB and saved it. I instantiated it and added it to the application controller's views as a modal. For some reason this window is still taking up th...
Hi there,
For an application that I am developing I need to create a grid of squares. The only relevant property they should have is the ability to change to any color (RGB).
1) What kind of object should I use? Custom?
2) Am I overlooking something? Should I, for instance, be using Core Animation?
Thanks in advance.
...
Hi,
I am quite new to the whole IPhone development thing and was playing around with the Three20 library. The samples for this library showed me an easy way to create a nice looking button with styles etc and this to my view:
TTButton* button = [TTButton buttonWithStyle:@"forwardActionButton:" title:@"Login"];
[button setFrame:CGRectMa...
Hi,
I have a custom button, subclassed from UIButton that is initialised as below (obviously all the button does is use a custom font).
@implementation HWButton
- (id)initWithCoder:(NSCoder *)decoder {
if (self = [super initWithCoder: decoder]) {
[self.titleLabel setFont:[UIFont fontWithName: @"eraserdust" size: self.titleLabe...
I am always subclassing UITableViewCell's and drawing them in code. Is there a good tool to visually get rect sizes so I don't have to guess and check all the time?
...
Is it bad practice/not efficient to draw UITableViewCell in IB vs drawing in code?
...
I'm working on an Interface Builder-type app for interface design. I would like to be able to align NSView's along their layout frames. Is there a way to access the ibLayoutInset property from my code?
...
I'm making a clone of the classic game simon, the memory matching game.
My (iPad) app will load fine, i tap start, the game screen loads, and only one of my four buttons will respond to touch commands.
To troubleshoot, I tried creating a second unrelated nib and just populating it with four buttons not linked to anything. However, onl...
Hi,
I have displayed UIButton on top of Playing Movie using this code.
NSArray *windows = [[UIApplication sharedApplication] windows];
if ([windows count] > 1)
{
// Locate the movie player window
UIWindow *moviePlayerWindow = [[UIApplication sharedApplication] keyWindow];
// Add our overlay view to the movie player's subview...
I have created a custom UITableViewCell from a NIB. Everything appears when the rowHeight is not set (albeit, everything is squished). I am not sure if I am reusing and creating the cells properly:
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath ...
Do I need to set heightForRowAtIndexPath if I am using a custom UITableViewCell? In my NIB I have already set the cell height.
When I over-ride heightForRowAtIndexPath the contents of my cell don't appear, even though it is set to the height defined in the NIB.
If I don't over-ride heightForRowAtIndexPath the contents of the cell appea...
Ok, I've spend like half day on this and it's killing me.
So I've got 3 view controllers transitioning from one another, something like this:
I call the UploadDecisionViewController after destroying the previous View Controller:
[self dismissModalViewControllerAnimated:YES];
[self performSelector:@selector(showUDModalView) withObject:...
I have a UISegmentedControl of width 280. In code, I need to remove the third segment, set the UISegmentedControl's width to 200 and then re-centralise.
By configuring the springs and struts in IB, I have set the segmented control up such that when I set the width directly it will automatically re-centre.
However, when setting the widt...
I'm looking for an open source php form builder or form generator to add/edit/delete/search records?
I have to create a simple manager for some records, it's a common application that should be found easily, but I can't find any good code/class/application/etc :(
Any help is appreciated.
...
I have a custom UIViewController and a corresponding view in a nib file. The view is added to the UIWindow directly.
[window addSubview:customViewController.view];
Sizes of the window and the view are default (480x320 and 460x320 correspondingly).
When I create CustomViewController inside the nib file and check "Resize View From NIB"...