iphone-sdk-3.0

Regular expression for numbers

Hi, I need a regular expression to detect at least one number in a string. Other characters can be anything. Please help me to implement this in objective C. Regards, Dilshan ...

How can i integrate Barcode scanner in my application?

Hi! i have sample code of Barcode Scanner but when i install it in my iPhone 2G which contains Version 3.1.3 gives me the below error message.i have taken the code from this link:http://code.google.com/p/zxing/downloads/list dyld: Library not loaded: /System/Library/Frameworks/CoreVideo.framework/CoreVideo Referenced from: /var/mobile...

MPMoviePlayerController on iPhone - Streaming or progressive download ?

Hi, In my iPhone App I need to show the videos which are in Flash format. I asked the client to change the videos in iPhone compatible format. They stored the converted the video on a server and I am able to show the video using MPMoviePlayerController. Now we need to store around 25 videos (Each around 300 MB) and access them via iPh...

iPhone app - Error handling when communicating with the server

Hi, My iPhone application continuously communicate with a web server. So in case of a connection lost or the server is not reachable is there any specific precautions we should do? I know that we have to show the user about the communication failure. If so is there any acceptable way of showing errors to the user? Im more concentrated o...

How to get UIButtons title in an array to be shown each one by one in a timed sequence

In my program, I have a series of UIButtons in an array that I would like its title to be shown each one at a time one by one in a timed sequence after executing a function that has a while loop. I have an IBAction attached to the buttons and when touched will call another function that will do some operation and in the end, will chang...

Search component effect in the mail application

Hi, In the iPhone email application once I click on the search bar it shifted to top and the background gets black. How to achieve this type of effect in the code? Do we need to create a custom UIView and make this shift explicitly? ...

objective C touch events problem

I have a 4 UIViews inside a UIScrollView. Assume 1 of it is a chart like in iphone stocks aplication. When I move the finger across the chart I need to draw a vertical line.I can use the touchesMoved for that. But Also I need to move horizontally scroll my views. Problem is when I move my finger across the chart, UIScrollView scrolls ho...

How can I enable each word tapping in UITextView for IPhone

Hi, I have a requirement wherein I have to provide tap/click/touch event for each word in UITextView. Any help would be really appriciated. ...

How to selected the first row on the tableview ,default

How to selected the first row on the tableview ,default ...

registering for NSNotification crashing my application??

i am playing a movie using MPMovieplayerViewController and i want to register for notifications when the movie stops...i am using the following code to use NSNotification but my application is crashing when the movie stops...i have used the NSNotification in same way earlier when it executed fine.. any idea regarding what i am doing wron...

How can I create an NSTimer that repeats twice and then stops

I'd like to create an NSTimer that repeats twice then stops and invalidates itself. I'd rather not use a loop if that's possible. Any thoughts on how I could do this? ...

Decode Utf8 string Problem

This is a Korean UTF8 encoded string: NSString *encString=@"íì¤í¸"; How can you decode this in UTF8? ...

How would I decompose an NSString into individual characters?

So I have a method that takes an NSString as an argument, and I would like that method to basically decompose that sting into individual characters and store them in an array(NSArray). I other words I would like to read each character in the string and store the individual characters in an array and in the same order, so that I can proc...

How can I delay method calls?

I want to be able to call a method and then, either wait for the method to finish doing it's thing and then invoke the next method call, OR call a method, wait a certain amount of time and then invoke the next method. Any thoughts on how I would do that? Example: [self method1]; //wait for method1 to finish whatever it's doing then mo...

How can I measure the time it takes to perform a method?

How can I measure the time it takes to perform a method call? I would like to know in order to time my delays properly. I'd appreciate any help you guys could give me. //Start measuring here [self method]; //Stop measuring here ...

Can I pause a loop while waiting for delayed methods to finish?

By delaying method calls inside a loop I noticed that the loop still runs, instead of waiting for the methods to complete. How can I get the loop to wait for the delayed methods to finish before continuing on to the next iteration? I'm delaying the methods by using the three calls below, for (int i = 0; i < [phrase length]; i++) { //D...

When I set the availability of my app for a future date does it still retain a "new" status

I know this isn't a programming question, but since a lot of people here are iPhone developers i'll ask anyways. My iPhone app got approved at around 11:30PM last night, and today I decided to download it to check it out. I noticed that there was a little problem with the app so I decided to change the availability date to a later date,...

iphone access orkut api

Does anybody know a code sample for accessing the orkut API thought the iPhone SDK? I only found this java version http://code.google.com/p/orkut-os-client/ that's no good for me. Thanks ...

How can/would I implement a morse code generator?

I was wondering what would be the best way to implement a morse code generator. The way it would work is the user types in a word or phrase and then that NSString would be passed into my method as an argument for processing. The way I want to process is to loop through each character in the string and then play the correct sequence of to...

Weird updates when using reloadRowsAtIndexPaths: in a table

I've got a table where the accessoryView button in the cell is replaced by a custom check mark icon. If the time interval for a pair of temperature settings is enabled, the cell row shows a check mark, along with a time, heating and cooling value. If the time is disabled, no check mark, and time displayed in the timefield.text is modifie...