iphone

Accessing Google APIs from iPhone native app

I'd like to access some Google API's from within an iPhone native app. I'm not a web programmer and have never used AJAX, but I'm guessing I need some kind of bridge between Objective-C and Javascript. Ideally I'd just fire XML at Google and process the result. I really have no idea were to start. Has anyone successfully done this, or...

What's the SIMPLEST way to play a sound clip in an iPhone app?

I want to be able to play a sound clip in an iPhone OS app. I've seen info on both NSSound as well as AVFoundation as being means for getting sound clips played on an iPhone OS device, but I'm still not clear on the subject and could use some help. No need to spell it out for me step-by-step in actual code, but if someone could give me a...

How to build a Framework class in XCode?

Hi Guys I want to build a framework regarding some common aspects used in xcode like that of UIKit,Foundation etc..Is it possible for us to create our own framework which could be reused later and if yes could you tell us a step by step procedure of how to do it? Looking forward for your help Thanks Arun ...

Is there a way to simulate multiple iphones using xcode/iphone sim?

I'm planning out a game that requires multiple users and I was wondering if there's a way to fire up multiple instances of the iPhone Simulator. I didn't see anything in menus or in Google search results, but I just wanted to make sure I wasn't missing anything. ...

problem with fetching data from a server

Hello every one, I am getting a problem while fetching data. Its giving CFHTTPMessageGetResponseStatusCode(response) as 302 . can any one help me to solve this problem. Thanks in advance, ...

next-previous with large number of views

I am trying to manage 18 different views. How can I handle next-previous functionality for each view in an efficient way with this many views? ...

Advice on High Score persistence (iPhone, Cocoa Touch)

Hi. I was curious what is considered the better way to manage the reading and writing of a High Score plist file. My High Score class is: @interface HighScore : NSObject <NSCoding> { NSString *name; int score; int level; int round; NSDate *date; } Now, I could do method A, add NSCoding methods: - (vo...

C++ struct member, what type to keep calendar time on iPhone?

I need to keep datetime in a C++ structure for an iPhone app. The time will be saved and restored into sqlite db. What is the best data type and corresponding API for this? My candidates are: time_t and struct tm from <ctime> and <time.h> NSTimeInterval from <NSDate.h> TimeValue from the QuickTime API My instinct is to go with the g...

iPhone sdk 3.0 issue

I set maxlength to my textField, when I entered maximum characters in the textField the backspace is not working. Due to that I am unable to change the textFields content. This happens when I test my application on iPhone sdk 3.0 but it works properly in iPhone sdk 2.2. Here is my code, - (BOOL)textField:(UITextField *)txtField shoul...

[iPhone] Help with modal text input for new table item

Hi, first let me start by saying I'm pretty new to iPhone, so I apologise for my ignorance. I've got a UITableView that I want to add new items to. When the add button is pressed, I want a modal screen to slide up where the user types in the text for the new item. I've been reading from Apple's Table View Programming Guide for iPhone,...

Is there a way to convert the coordinate system after a change to Landscape Orientation?

In a view-based iPhone OS application, I change the orientation from the initial portrait orientation to a landscape orientation (UIInterfaceOrientationLandscapeRight). But now the x,y origin (0,0) is in the lower-left corner (instead of the usual upper-left) and each time I want to do something that involves coordinates I must re-calcul...

iPhone UITableView cells stay selected

Hi, in my UITableView sometimes cells stay selected after touching. Because it happens only occasionally, I'm not able to reproduce the problem. Any hints? Maybe it has something to do with unproper releasing of tableView? - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ NSUI...

NSTimer callbacks while iPhone application is inactive

This question seems to be the essence of several others on this forum. I believe that it is possible for the active iPhone application to continue running, and specifically, to continue receiving timer call-backs, after it has entered the inactive state (either through the idle timer kicking in the screen lock, or through the user pressi...

UITableViewCell / UISegmentedControl border issue

I'm trying to get a UISegmentedControl in a group UITableViewCell much like in the wifi settings in the Setting Application. The problem I'm having is I'm getting a double border. I get one border for the UISegmentedControl and one for the UITableViewCell. I'm guessing I need to remove the border from the UITableViewCell. How can I go a...

What's the easiest way of using SQLite3 in iPhone-OS?

I've heard that it's a bad idea to use plain SQLite3 in an iPhone project. Which frameworks, libs, wrappers, etc. do you use? Which are worth looking at? ...

how to use media library in our application?

Hiii, I want to use any media file from user media library in my iphone application. Just like we pick an image from photo library. Are there any API's for this? ...

iphone: managing timers on different views

Actually I want to stop the timer of one view when I go on next view, so what can i do? That means when I open one view the timer is start , when I come to next view the timer is still running. Plz help me for that. ...

Using a object across multiple view controllers

I have been attempting to have a object that I can use across multiple view controllers by following this thread. http://stackoverflow.com/questions/851158/one-instance-across-multiple-views But it has not been working for me. So I started with the basics to see what was going on. I created a local instance of the object. PlayerDa...

Using Manifest Files in UIWebView

I'm building an application for the iPhone/iPod Touch using a UIWebView object. Manifest files seem like an excellent way to do this, and I have gotten our app to load successfully offline in Safari using this technique. My problem is that once I move into my application, I can't get the manifest files to work offline in my UIWebView o...

Ist it a good idea to use NSUserDefaults to store the latest state of an iPhone application?

I have an view-based application where the user can do a lot of customization things, like selecting colors, selecting pictures, and so on. First, I thought about using sqlite3 for that, but since this would result in a table with only one row (no multi-user app), it seems like a big overhead to me. Then I heard about NSUserDefaults. Bu...