I'm using interface builder's tag feature to access some UILabels I'm instantiating in a xib file. Since this a UITextViewCell I want to avoid superfluous method calls, but I want to do it right too. Thus when I do:
UILabel *label = (UILabel *)[cell viewWithTag:1];
I'm wondering if I should wrap it up like so:
if([[cell viewWithTag:1...
I'm looking for a reliable design for handling assignments that have asynchronous requests involved. To further clarify, I have a class which handles Data Management. It is a singleton and contains a lot of top level data for me which is used throughout my iPhone application.
A view controller might do something such as the following:
...
Does anyone have an example of setting up a text field where users can enter their name and/or email address to submit it online to a high score database? I would like to have
it be similar to the form that pops up when you attempt to download something from the AppStore, where you put in your email and password then can hit OK or Canc...
How would one change the view on the screen programatically in an iPhone app?
I've been able to create navigation view's and programatically push/pop them to produce this behaviour, but if I wanted to simply change the current view (not using a UINavigation controller object), what is the neatest way to achive this?
A simple example, i...
i have downloaded the iphone MoviePlayer sample code from iphone developer center,but when i add a action [mMoviePlayer stop]
at overlay button there, the screen keep blinking when i playback the movieplayer, is anyone met this problem?
...
I come from a web development background. I'm good at XHTML, CSS, JavaScript, PHP and MySQL, because I use all of those technologies at my day job.
Recently I've been tinkering with Obj-C in Xcode in the evenings and on weekends. I've written code for both the iPhone and Mac OS X, but I can't wrap my head around the practicalities of me...
Different iPhones have different published memory 4GB, 8GB and 16GB. The touch can have 32GB. My understanding is this is the off-line memory (disk alike).
How much actual fast ram is there in the device available for my Cocoa Application?
Is there a preconfigured virtual amount?
...
I'm in the design stage for an app which will utilize a REST web service and sort of have a dilemma in as far as using asynchronous vs synchronous vs threading. Here's the scenario.
Say you have three options to drill down into, each one having its own REST-based resource. I can either lazily load each one with a synchronous request, bu...
I'm on a project doing an iPhone application. We had a Cocoa consultant come in for a few weeks. He showed me an interesting idiom of Cocoa, dealing with interfaces, but there was a difficult language barrier between us, and he wasn't really able to explain why this was done or where it was documented so I could learn more on my own. I w...
For the life of me I can't figure out how I'm supposed to set the UITextField to display the text vertically (landscape mode) instead of horizontally (portrait mode). The keyboard shows up properly, but when the keys are pressed the text is entered in the wrong orientation.
Here is the screenshot for the window
And here is the code for...
How can I set a custom background color of a button?
Interface Builder doesn't seem to have an interface to do this.
Is it only available programmatically?
If so, can you provide an example, please?
...
I have been considering developing a couple iPhone/iTouch apps for fun and profit. I am curious if there are any iPhone developers out there that would like to give some feedback.
I consider myself a good developer. I have 20+ years experience, but I find it difficult to get exposure for apps I have written. iTunes seems like a great...
Is there any way to get the exposure settings (aperture, shutter speed, ISO) for a photo taken on an iPhone?
An app running on the iPhone can use the UIImagePickerController interface for taking pictures, but that doesn't provide much info about the picture.
The EXIF data for a photo taken on the iPhone contains aperture info, but not ...
What is the proper way to implement the status bar and navigation bar that go on top of an UIView?
...
I'm curious if this is a situation any other folks have found themselves in. I have an NSDictionary (stored in a plist) that I'm basically using as an associative array (strings as keys and values). I want to use the array of keys as part of my application, but I'd like them to be in a specific order (not really an order that I can wri...
I am looking to distribute an open source iPhone app and I have a few questions about making the source distribution:
1) How can I automate creating the source archive (or diskimage) with XCode? I want something along the lines of a build target which archives the source (cleaning targets first if necessary, but it would be nice if it d...
I placed a UITextField into a UIAlertView and moved it up so the keyboard wouldn't cover it up with the following code:
[dialog setDelegate:self];
[dialog setTitle:@"Enter Name"];
[dialog addButtonWithTitle:@"Cancel"];
[dialog addButtonWithTitle:@"OK"];
UITextField * nameField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 45.0, ...
In my application I have a UITextField inside a UITableViewCell. If I click inside the text field and add some text I find that if try to move the insertion point it works the first time but fails on subsequent attempts. I am completely unable to move the selection; no "magnifying glass" appears.
Even more curious, this "setting" seems ...
I am setting up an alert with a text field in it so players can enter their name for a high score. The game is oriented in landscape mode, but when I call to show the alert, the alert pops up in portrait mode while two keyboards are displayed, one in landscape and one(that's the size of the landscape one) in portrait mode. Here's the c...
In an iPhone app I'm working on, the user needs to enter some configuration via the settings application before my app will be able to connect to a server and run. Right now when the user first launches my app, I display an alert explaining that the user should go to settings, enter the config details and then relaunch, but this isn't id...