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?
...
I'm converting an algorithm I wrote in Java to Objective-C. In java the BigDecimal class handles base-10 numbers and can take the primitive double as a constructor arg. In Cocoa's NSDecimalNumber class, however, there is no direct way to construct an instance using a primitive double.
Currently I'm using this (smelly) hack:
[NSDe...
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...
Can the iPhone determine if you're facing north, south, east or west?
...
Hi friends,
Hope that all are fine.
I have 22 UISwitch in a table view and I have created all these switch objects in one function and set them in the table view.
How can I know which switch is on or off? I want to do this through only one action method but I don't know how to do that.
If anyone has faced this problem, please give m...
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!
...
I have an application that works some what similar to how iPhone's Contact application works. When we add a new Contact user is directed to a view only screen with Contact information. If we select "All Contacts" from the navigation bar, user is navigated to list of all contacts where the recently added contact is in view.
We can move t...
(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
...
I am able to design custom UITableViewCells and load them just fine using the technique described in the thread found at http://forums.macrumors.com/showthread.php?t=545061. However, using that method no longer allows you to init the cell with a reuseIdentifier which means you have to create whole new instances of each cell at every cal...
Does anyone know where I can find an example or a tutorial of building a Cocoa Touch plug-in for Interface Builder?
...
I've developed on Windows and .NET for my whole career so forgive my ignorance on this one.
What would be the steps to setup an iPhone development environment from scratch?
Assume that I have nothing but electricity and an internet connection.
What hardware and software would I need?
I'm talking about the ideal environment here. If i...
I would like to develop a reusable UI control for iPhone. How should I go about doing this? When I say reusable I mean it's packaged in a dll (or whatever is used on iPhone platform) so it can be reused on multiple projects.
...
So I have an app which plays many short sound clips. I need to know when the sounds are finished playing, and I need to use mp3s, so I'm using AVFoundation for the sound playback.
When a sound is actively playing, and the user uses the hardware volume buttons, the playback volume changes. Problem is, the app is NOT constantly playing ...
I've only heard about what UIProgressHUD class do, but i cannot find the implementation of this class or any documentation. Reference to this class can be found in "The iPhone Developer's Cookbook 1st Edition" book, and other articles on the internet:
http://www.cocoadev.com/index.pl?UIProgressHUD
http://blogs.oreilly.com/iphone...
It appears as though NSNumberFormatter's method for setting custom formatters. setFormat: isn't available on the iPhone...
SO this... crashes my app:
NSNumberFormatter *lengthFormatter = [[NSNumberFormatter alloc] init];
[lengthFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[lengthFormatter setNumberStyle:NSNumberFormat...
Does the iPhone support garbage collection? If it does, then what are the alternate ways to perform the operations that are performaed using +alloc and -init combination:
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:xmlData];
UIImage *originalImage = [[UIImage alloc] initWithData:data];
detailViewController = [[[DetailView...
While developing my app I have come to realize that the majority of my app crashes have arisen from poor memory management.
I understand I can print or log retain counts through NSLog (@"retain count is:%d",[myInstance retainCount]);
But isn't there a better, less manual method? Possibly a visual representation of your objects and inst...
I have an app holding an array of instances of a class called SwimmingPool.
At present my application persistence is dealt with by encoding everything into NSData and saving that to the iPhone. This is then reloaded everytime the app starts.
I have a few friends populating their individual applications with instances of SwimmingPool. I...
My question starts from a problem :
I started a project in XCode : a Navigation Bar based one (with a TableView).
Then I added a few views, through IB or programmatically... which works perfectly fine.
Then, I decided to write my Own ViewClass, inherited from UIView, called OpenGlView (based on the view provided by Basic OpenGlES projec...