How can I go about creating a UITableView with taller cells? Basically, I want to create a full screen table with only four cells, but they should take up the entire screen (1/4 each).
Assuming this is possible using a UITableView, can it be done both in code and in Interface Builder? And also, can each cell have its own height?
--Tim
...
There are methods to transfer a CGPoint from one UIView to another and from one CALayer to another. I cannot find a way to change a CGPoint from a UIView's coordinate system to a CALayer's coordinate system.
Does a layer and it's host view have the same coordinate system? Do I need to transform points between them?
Thanks,
Corey
...
I would like to render to an offscreen bitmap (or array of RGBA values) and then blit those to a UIView during in the view's drawRect function. I would prefer to do full 32-bit rendering (including alpha channel), but would also be content with 24-bit rendering.
Would anyone mind pointing me in the right direction with some code snippet...
I need to display text in an iPhone application, something like the way a book is displayed, for example:
Heading
Sub heading
The actual text of the book. Blah. Blah. Blah.
How would I go about doing that? I've found the UITextView and UITextField and UIScrollView objects, but I can't figure out how to use them properly... Any suggest...
I have an application where I need to remove one view from the stack of a UINavigationController and replace it with another. The situation is that the first view creates an editable item and then replaces itself with an editor for the item. When I do the obvious solution within the first view:
MyEditViewController *mevc = [[MYEditViewC...
Or to reformulate the question: is there a performance penalty in using unsigned values?
And in general: what is the most performant type (16bit signed?, 32bit signed? etc.) on the IPhone ARM processor?
...
My app uses NSTimer and it appears that NSTimer doesn't fire when the iPhone goes into the stand-by mode (either by pressing the hardware button or by the idle timer).
When I activate the iPhone again, my app is still in the foreground. What happens to third party apps when the iPhone is the stand-by mode?
...
I'm talking about the "slide to unlock" button on iPhone. Any ideas how to go about implementing one in my own iPhone app? I don't see it as a control in IB, or maybe I just missed it?
...
My iphone app has several text fields. The "Did End on Exit" event on each text field calls a single action. How can I tell which text field called the action? Can I detect this from the sender object which is passed to the action?
...
Hi everyone. I'm currently learning Objective-C, coming from a Java background where I have no trouble making GUI applications. As such, the way I'm thinking about some of these problems may be a bit off. Here's the question (please excuse the ramble) -
What is the purpose of UIViewController?
Let me give a specific example. Say...
I'm working on a simple iPhone app.
I have 1 UINavigationController and 2 subclasses of UIViewController.
I have a MainWindow.xib file, a PersonListView.xib, and a PersonDetailView.xib.
The MainWindow.xib has the UINavigationController with the view linked over to the PersonListView.xib file.
The PersonListView.xib has the File's Own...
Can the iPhone determine if you're facing north, south, east or west?
...
i have two iphone apps and want to they able to switch via a single button, anyway to do this?
...
I'm trying to mimic the following Java code:
int[][] multi; // DIMENSIONS ARE UNKNOWN AT CREATION TIME
// LATER ON...
multi = new int[10][];
multi[5] = new int[20];
multi[5][11] = 66;
// LATER ON...
multi = null; // PROPER WAY OF FREEING EVERYTHING
I've came out with the following Objective-C version:
int* *multi;
//
multi = malloc(1...
Hi There,
Really stuck on trying to write code to unzip a file or directory on the iPhone.
Below is some sample code that Im using to try and unzip a simple text file.
It unzips the file but its corrupt. Would be really grateful is someone has an example or any pointers.
Thanking you
Tony
(void)loadView {
NSString *DOCUMENTS_FOLD...
Does NBeep() exist on the iPhone? I just want to play a short error sound to indicate that the key pressed is not a legal character. I will play this in my textField delegate that dissalows the illegal characters.
This site is great btw!
...
If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this? I thought someone had asked this question before, but I cannot seem to find it now.
...
(iPhone question) My code looks like this
NSNumber *inputToNumber = [NSNumber numberWithFloat:[textField.text floatValue]];
the value from the textfield is actually a telephone number. It's stored in NSNumber as an annoying (2.0)78966e+08
How can I just get NSNumber to store it as 0207896608?
Thanks
dan
...
iPhone app:
I have an UITableView with about 30 custom cells each containing an UISegmentedControl. I have wired up the UIControlEventValueChanged event to get hold of selectedIndex.
I would also like to get hold of UISegmentedControl's identity to identify it among the 30 UISegmentedControls. So, how can I get hold of the identity for...
I want to display and rotate a single 3D model, preferably textured, on the iPhone. Doesn't have to zoom in and out, or have a background, or anything.
I have the following:
an iPhone
a MacBook
the iPhone SDK
Blender
My knowledge base:
I can make 3D models in various 3D programs (I'm most comfortable with 3D Studio Max, which I o...