iphone

Free Weather API

Are there any free weather APIs for displaying weather in the iPhone application. ...

<Error>: CGImageSourceGetType image source parameter is nil\n - iPhone SDK

I'm seeing this in the Debugger Console: <Error>: CGImageSourceGetType image source parameter is nil\n I think it may be related to the UIWebView used by the Mobclix ad library. I didn't observe any adverse behavior in my app, but I may be missing something. ...

Best way to serialize a NSData into an hexadeximal string

Hi all, I am looking for a nice-cocoa way to serialize a NSData object into an hexadecimal string. The idea is to serialize the deviceToken used for notification before sending it to my server. I have the following implementation, but I am thinking there must be some shorter and nicer way to do it. + (NSString*) serializeDeviceToken:(...

Can I read from a SQLite db while writing to it on the iPhone?

Hey Guys, Is it possible to read from a SQLite db while it's being written to? I'm aware that access is blocked for writes when it's being written to, but is that the same for reads? ...

NSTimer problem

I am using this code: timer = [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(update) userInfo:nil repeats:YES]; ... -(void)update { NSDate *date = [...

Using the iPhone SDK, can I programmatically get a list of the applications/games on a users iPhone/iPod touch?

I would like to be able to pull the list of apps and games the user has and present it to them, or launch one of them. I'm guessing that Apple doesn't provide this capability in the iphone sdk. Still, I'd like to know how to do it and still be eligible for the app store. ...

How to open UITextView web links in a UIWebView instead of Safari?

Hi. I'm developing and iPhone 3.0 application. I'm trying to open web links in a UITextView into a UIWebView instead of Safari. But still no luck. The UITextView is not editable, and it perfectly detects web links and open them in Safari. How to avoid that? How to grab that url so i can use with my own web view? Sorry for my English and ...

how to develop VOIP application for iphone

Hi all great programmers, just wanted to check how to start developing VOIP IPhone application what are the supported libraries API's available. thanks in advance ...

Time between touch began and touch ended

Is there any function in cocos2d or objective c to find the time between touch began and touch ended?? ...

Add image into UIActionSheet

How to Add image into UIActionSheet? ...

How do I use a UIViewController as a dialog?

I have a UIViewController that I want to display a second UIViewController as a dialog. Basically, the user presses a button in the first controller, then the second controller pops up and the user makes a selection. When the user presses Save in the second controller, how does control get passed back to the parent controller, and how ...

can i use CGAddLineToPoint and CGAddMoveToPoint in EAGLView

Error is like this:- errror:-CGAddLineToPoint invalid context ...

build iPhone app for 2.2.1 but use 3.0 features (copy & paste)

Hi, I want to add copy & paste to my application but make it available to 2.2.1 devices.... How should I proceed ? Saw that: http://www.clarkcox.com/blog/2009/06/23/sdks-and-deployment-targets/ If I understand correctly, I set the Base SDK to 3.0 in order to be able to compile with 3.0 API (copy & paste) but I set the target for 2.2.1...

Best approach for simple link within UITextView

I am creating a dictionary lookup application. The user selects a word from a UITableView and the app displays the definition. In some cases the word will be similar to another word, so I want to display "See Also:" followed by a list of similar words that when touched, bring up another definition. In searching here on links within UI...

self.appDelegate = [[UIApplication sharedApplication] delegate]; ALWAYS 0x0...

Hello, I am experiencing a strange behaviour. In a view controller I would like to keep a reference on my app delegate ([[UIApplication sharedApplication] delegate]) So I have a property I set when my controller is instantiated. All is working on the simulator by on the device my property is always 0x0 in debugger. I wrote this code t...

What is difference in iPhone os 3.0 and 3.0.1

Hi, Developing for iphone os 3.0 and 3.0.1 make some difference or not? ...

How to provide additional custom implementation of accessor methods when using @synthesize?

I want to fire some code when a property is accessed and changed. I use @property... and @synthesze... in my code for my ivars. The properties are retained, so I'd like to keep that memory management stuff automatically generated by @synthesize. However, I assume that @synthesize tells the compiler to generate the accessor methods code ...

sizeWithFont - weird behavior when containing the & character

Whenever an & is present on the text, getting the height seems to be off all the time. Both functions return less than the actual height: CGSize labelSize = [nameLabel.text sizeWithFont:nameLabel.font constrainedToSize: CGSizeMake( actualWidth, MAXFLOAT ) lineBreakMode:UILineBreakModeWordWrap]; CGRect textSize = CGRectMake(0.0, 0.0, 32...

Use me.com "find my iPhone" programmatically.

Greetings! My wife, my 9 year old, and myself all have iPhones with me.com subscriptions. One of the "killer features" (at least for me) in the 3.0 firmware was the "find my iPhone" functionality. I would like to build some sort of tool that would poll the "find my iPhone" service every once in a while, and I could build some sort of da...

Finding Similar Strings without case sensitivity - iPhone

In my application there is a tableView & a search bar. I have an NSMutable array to fill data in tableView. Now, whatever user types in a search bar - data should be filter accordingly & tableView should be reloaded. I have implemented following code in my application on textField resignFirstResponder. My question is within this code...