iphone

Getting the Value of a UITextField as keystrokes are entered?

Let's say I have the following code: IBOutlet UITextField* nameTextField; IBOutlet UILabel* greetingLabel; I'd like the greetingLabel to read "Hello [nameTextField]" as soon as the user presses any key. What I need basically is the iPhone equivalent of the Cocoa delegate method -controlTextDidChange: The -textField:shouldChangeChar...

iPhone Simulator Default Hardware Version

I have been playing around with the iPhone SDK recently. At first I wasn't taking advantage of anything that required version SDK version 2.2. However, I recently started using some features that were added or modified in 2.1 and 2.2. I installed the new 2.2 SDK and changed my project settings to target SDK 2.2. However, when I hit "Bui...

Date Picker for iPhone Web Application

What is best way to show Date Picker for iPhone based Web Application. Can we show something like iPhone native date picker like shown below in web application: ...

What is the fastest way to draw single pixels directly to the screen in an iPhone application?

I am looking the fastest way to draw thousands of individually calculated pixels directly to the screen in an iPhone application that preforms extremely well. ...

UITextField - clearButtonMode only in code, not in IB?

Is there anyway possible to set the clearButtonMode for a UITextField in Interface Builder? Is this only possible to do code? I do not see it as an option in the UITextField attributes panel. ...

UITableView into a UIScrollView?

I'm looking to have two views which are part of a constituent set. Data in each view would be best represented in a UITableView. I'd like to then add a gesture to flicker the view off screen and have another similar view brought in, with a page indicator control. My fear is that UITableView intercepts touches and becomes the responder to...

User Interface inspiration for iPhone Apps

Does anyone have any suggestions for a site that potentially has some inspirational user interfaces for building my own iPhone Apps. It's straight forward to continually build out applications with the conventional UIKit widgets, but it does not set you apart from the competition. Some resources on how to build attractive interfaces is h...

Dismiss iphone keyboard

I am trying to recreate something similar to the popup keyboard used in safari. I am able to visually reproduce it by placeing a toolbar over my view and the appropriate buttons, however i cant figure out any way to dismiss the keyboard once the user has touched the done button. ...

Copying frameworks into project?

When attempting to copy a framework into the Frameworks folder of my project in Xcode, I get the error Could not copy /Developer/Platforms/.../Frameworks/OpenAL.framework to /Users/.../OpenAL.framework I had accidentally copied the wrong framework with the same name into the project earlier and deleted it, but now I can't copy the ...

Adding a subview below my UITableView

I'm experimenting with programmatically adding a subview below my UITableView. I'm using a map curl sample from Erica Sadun's book in order to test to see if the view below my UITableView is indeed the view I'm adding. However, when the UITableView curls up, the view color of the view below is white, not the black view I'm adding in the ...

How does NSMutableData work?

I have one problem to work with NSMutableData. I defined one NSMutableData *receivedData, and tried to copy several NSData* data to the receivedData. I just called [receivedData appendData:data], but appears the data is not copied: .... NSLog(@"get data! Received %d bytes of data",[data length]); // output is not zero, say 1231. [r...

Any base64 library on iphone-sdk?

I'd like to do base64 encoding and decoding. But I could not find any support from iPhone SDK. Any suggestion? Thanks. ...

Find if an audio is currently playing

Hi I need to find out if my program is currently playing any audio and in case it does, I want to stop the previous audio and start a new playback. The property kAudioSessionProperty_OtherAudioIsPlaying always returns a 0 (probably only checks whether iPod music is playing) There's another property kAudioQueueProperty_IsRunning but this...

IPhone development on a hacked IPhone.

You knows that IPhone in other country like China mainland always be hacked when it buy from reseller. Can I develop custom app by official SDK on a hacked IPhone ? ...

For iphone development, how to flip a UIImageView?

I want to flip an imageView (left/right), but I can not find a UIView (or UIImageView) method to do that? any idea? thanks! ...

Best Practice: Animating a view into display onto iPhone

If I'm looking to use Core Animation to fade a view in and out of display -- is it good practice to have the UIView in the same NIB as the view that it is being drawn into? Should I build the view in another NIB file and load it in from there? I'm looking to animate three small views into display simultaneously upon a user action. I want...

Bindings using Interface Builder (for iPhone apps)

How does one bind an iPhone SDK control (say a UISlider) using Interface Builder? Unlike regular Cocoa applications, the bindings tab does not seem to be present when the iPhone-app XIB is opened using Interface Builder ...

Blocks to KB/MB/GB from statfs on iPhone

I am using statfs() which gives me the free blocks available to a non-superuser. I am unsure how to convert this into KB/MB/GB. The values that are returned are: fundamental file system block size: 4096 total data blocks in file system: 3805452 free blocks in fs: 63425 free blocks avail to non-superuser: 63425 total file nodes in file...

Prepare SMS message from an iPhone app

Is it possible? Developers can use SMS URLs to populate the phone number, but I haven't found a way to populate the message body. ...

Is there any system level background queue process in iPhone?

I need to save a big file, sometime it takes a very long time to finish, user might just close the application. I am wondering whether the iPhone SDK could take over the unfinished big task. Appears iPhone's own mail system could do background send. I prepared a email, click send, then close the mail app immediately. In home page, aft...