iphone

NSMutableArray writeToUrl

Is it possible to use the: [NSMutableArray writeToURL:(NSString *)path atomically:(BOOL)AuxSomething]; In order to send a file (NSMutableArray) XML file to a url, and update the url to contain that file? for example: I have an array and I want to upload it to a specific URL and the next time the app launches I want to download tha...

'Unable to read symbols' error

When I 'Build and Go' on the device, the console shows: warning: Unable to read symbols for ""/Users/Steve/Blue/build/Debug-iphoneos"/Blue.app/Blue" (file not found). warning: Unable to read symbols for ""/Users/Steve/Blue/build/Debug-iphoneos"/Blue.app/Blue" (file not found). Is this something I should worry about? If so, where shoul...

How is iPhone OS developed?

Is it a separate branch of Mac OS X? If so, does the code get synchronized with 10.6? (that might be somewhat a separate question, but why couldn't they make a Mobile Leopard rather then separate OS for iPhone?) Please do try to respect the Apple's NDAs while answering. Update: I start to get the rough idea: the open source kernel...

Delete object from array in NSTableView

Quick one. I'm overlooking something... I have a grouped table view that is built from arrays in an NSDictionary. Each array is a section of the table. When in editing mode and a user clicks "delete" I call - (void)removeObject:(MyClass *)myObject how can i determine which array to send the message [myArray removeObject:myObject]? N...

What causes frame rate loss?

I'm writing a game with cocos2d and I have noticed that the frame rate drops as the game progresses. I've checked for leaks but everything looks fine so I'm at a loss as to what to do next. Sorry if this is a really basic question but what sort of factors cause frame rate loss? The problem seems to get worse when I clear the sprites fr...

What extension do you need in order to access a SQLite DB in an iPhone app?

The problem I'm running into is that when using "MyDB.sqlite" the application seems to not read the DB correctly (stops, NOT errors, at this line according to NSLogs): if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) { whereas if I rename the DB "MyDB.sql" (notice the lack of "ite") it will rea...

Change UITableViewCell outside of Protocol methods

The UITableViewCell is usually drawn with the UITableViewDelegate or UITableViewDataSource protocol methods, like -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath But how would I change the ce...

How to get AVAudioPlayer output to the speaker

I'm recording audio with AVAudioRecorder as seen in http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder/1011273#1011273 I then use AVAudioPlayer to play back the recording. However the sound is coming out of the ear speaker, not the loud speaker. How would I go about redirecting the sound to...

Is there a standard open icon library for web developers?

We are looking for an icon library that is open licensed. We want to use the icons as a prototype not the final version of the application, but they need to be open to use. EDIT 1: Even though many of the responses are good and useful, I will mark as correct answer the one with more votes. First because I like it, and second because ...

[iPhone] Delaying but not disabling iPhone auto-lock

Hi everyone, I currently have a very simple app for which the only interaction is shaking the iPhone. However eventually the screen dims and auto-locks since the iPhone is not getting any touch events. I was wondering if there is a way to reset the auto-lock time-out when shaken? I know that to disable auto-lock completely I would do...

Creating a highscore like system, iPhone side.

I'm sorry for opening a new question, I had to - as I wrote the other question from my iPhone as unregistered user and it is not very comfortable to write from the iPhone. Rephrasing the question: Is it possible to use the: [NSMutableArray writeToURL:(NSString *)path atomically:(BOOL)AuxSomething]; In order to send a file (NSMuta...

Does App WAIT for -initWithContentsOfURL: to retrieve web-data?

I am trying retrieve data from a .php file on a server from within an iPhone OS app. In one method, I employ the following code: NSString *aString = [[NSString alloc] initWithContentsOfURL:aURL encoding:anEncoding error:nil]; //See what I got NSLog(aString); When I run the App it seems like the App runs through the code so fast I dou...

how to generate graphs using integer values in iphone

i want to show a grapph/bar chart in iphone how do i do this without custom API;s ...

How do you limit apps to iPhones only and not iPods [iPhone SDK]?

There used to be an option in the submit wizard where you can specify whether your app is for iPhone, iPod or both. Now the option is gone for 3.0. Then I noticed an extra option in info.plist "Application requires iPhone environment". I checked this item but the app is still marked as iPhone and iPod in the portal. Any ideas? Couldn't f...

iPhone app uses 60mb of virtual memory on startup

Now, I know my app uses a lot of graphics, but not 60mb of graphics. However, Instruments shows me that the app is using 60+mb of virtual memory just after startup. The compiled app is 24mb big, and we're talking about the idle welcome screen after startup; any idea why the VM size might be this huge? ...

How to create classes after creating Core Data model in Xcode for iPhone

I have created my Model, Entities, Properties and Relationships in Xcode. How are the classes for my Entities created? Do I have to manually create them? ...

Xcode Naming Executables

Ok. So I got my first app approved by Apple, it goes on sale this week. With that out the door, I wanted to create a Lite version of the app. I did a branch in SVN, and created a new working directory. Original app is Trak4, Lite version is obviously Trak4 Lite I noticed that when I build, the .app file that Xcode creates is still...

Is it possible to scan for bluetooth "id's" using the iphone gamekit api's

Hi Ok, before I get a ton of responses. I know you cannot talk to other bluetooth devices (exchanging data or otherwise). I was just wondering if the bluetooth id's appear when you use the Peer Picker as I'm currently investigating just the ability to detect other bluetooth devices not the actual pairing. Think of it like bluetooth RFI...

iPhone: Transforming an image using Quartz 2D

I am trying to apply some transformations on images using a CGContextRef. I am using CGContextTranslateCTM, CGContextScaleCTM and CGContextRotateCTM functions, but to keep things simple lets focus on just the first. I was wondering why the following code produces exactly the original image?! Am I missing something? CGColorSpaceRef color...

OpenGL ES Render to Texture

I have been having trouble finding straightforward code to render a scene to a texture in OpenGL ES (specifically for the iPhone, if that matters). I am interested in knowing the following: How do you render a scene to a texture in OpenGL ES? What parameters must you use to create a texture that is capable of being a render target in ...