iphone

Simpler Solution For Playing Audio on an iPhone

Apple lists (http://developer.apple.com/samplecode/AudioQueueTest/listing1.html) as a quick demonstration of playing an audio file. Is there a way to play an audio file with many less lines of code? ...

how to create a dice iphone application

i know there was many dice application in the store but i just want to know how to start to create a application ,when shake the phone the 3D model will roll,thanks if can give any pointer on how to start ...

While playing sound acceleration occurs

Hi to all I am developing one game where I want to move UIImageView based on accelerometer. When I rotate iphone device left to right or right to left the UIImageView have to rotate in particular angle. It's moving also but the problem occurs when I play background sound because of that sound, it sends some acceleration point even if m...

How can I localize the value of CFBundleDisplayName in the Info.plist file?

When I look inside the Info.plist file in Xcode, the Property List Editor shows me an value that looks like an variable: ${PRODUCT_NAME} How / where can I set up localized names for my app? ...

How do you insert an image into SQLite on the iPhone?

hello, I want to insert an image in sqlite3, i have created table using "create table table1(photo blob,name varchar(10));" Now i want to insert an image in to it,so what is syntax for insert image into it? and in another table i want to store location of the image so for second table what is my create table and insert table syntax. Can ...

iPhone SDK - NSStreamEventHasBytesAvailable / appendBytes: crashing

Disclaimer: I am an Xcode / iPhone SDK Noob. I am trying to establish a client-side TCP/IP connection to an existing server. Upon connection, I expect to receive some data about the server (version, etc.). When my connection is made, the NSStreamEventOpenCompleted event fires, so I know the connection is made. Next the NSStreamEventHas...

iPhone landscape-only app view axis confusion

Using the information here: iPhone Landscape-Only Utility-Template Application I am able to launch, use and maintain my view as landscape only. However, I am confused about the axis. The absolute axis behaves as expected, meaning (0,0) is the top left, (240,0) is the top center, (0,320) is the bottom left corner, etc. However, when I ...

How to bind literal text to an SQLite query?

I'm trying to use the SQLite C API in my iPhone app. I'm trying to query an SQLite database for the number of records that have been completed after a certain date. The database saves the completed date as text in YYYY-MM-dd format. For example the text 2009-04-10 might appear as a completed date. When I query the database from the comm...

Multiple AVAudioPlayers: I can only get the first one initialized to play

I have a bunch of sound clips, named sound1.mp3 through soundN.mp3. I want to randomly play them on touch, so I've set up an AVAudioPlayer for each clip which are all stored in players (AVAudioPlayer**). After I initialize everything, the only sound I can get to play is sound1.mp3. What am I doing wrong? Thanks for the help, init cod...

What are the best tools for unit testing iphone applications?

Wondering which tool is considered the best/standard and what the pros/cons are for the various unit testing tools that are available. The tools I'm aware of so far are: Google Toolbox for Mac OCUnit which seems to be the winner for objective-c, but some folks have had trouble with on the iphone rbiphonetest which Dr Nic comments on he...

iPhone SDK: Convert Byte Array to NSString?

XCode Newbie Alert! I am reading data from a TCP/IP stream and am successfully receiving a byte array from the pre-existing server. I am now trying to find a way to convert that array to an NSString. I have found several examples, but am having a hard time getting my desired results. case NSStreamEventHasBytesAvailable: { NSDat...

How to remove cells from UITableView directly?

Hi, is it possible to remove a cell from UITableView directly, with animation? Without changing datasource and then reloading table data? Thanks. ...

json-framework doesn't work with iPhone SDK 3.0

I can't seem to get my app to compile when using JSON-framework http://code.google.com/p/json-framework/ with iPhone SDK 3.0. My app compiles fine for the simulator, but when I go to compile for my device I get a 'codesign error' code 1. I've followed all of the installation instructions correctly, and when I remove the 'Additional SDK'...

Preventing PHP scripts used in a iPhone app from being access via web browser

Hi all, I'm trying to get some more info on a question I posed on another thread Basically, I am using this method to pass parameters to a php script which returns values from a server: NSString *urlstr = [[NSString alloc] initWithFormat:@"http://www.yourserver.com/yourphp.php?param=%d", paramVal]; NSURL *url = [[NSURL alloc] initWithS...

How are iPhone emoji apps made?

Does anyone know how it is done? They seem to be enabling japanese language settings.. But how? It's impossible to search for it, because of all the outrage over Emoji apps in the app store. Thanks a bunch! ...

Help with Audio Services function

Hi. This is the blurb accompanying the Audio Services function AudioServicesSetProperty. Its a bit over my head. Can someone give me an example of how to actually use this. Thanks. AudioServicesSetProperty Sets the value for a specified System Sound Services property. OSStatus AudioServicesSetProperty ( AudioServicesProper...

Touches on UILabel

In my program labels didnt detect touches while i testig on simulator. but it works fine on device. why does this happens?. i want to capture the video of my application when working on simulator. ...

how to display streaming video on the iPhone

Hi, I am planning to write an iPhone app which can display streaming audio/video from the internet (backend would most probably be Red5 or Wowza and video will be streamed on RTMP (although I have the option to change that). Any ideas on implementation? http://www.youtube.com/watch?v=5-UoLsSSw30 demos something similar to what I have i...

Is it possible to access the App Store Data for market analyzation?

I am wondering if the App Store provides an API that allows others to access the data like descriptions, prices, reviews, etc.? ...

UITableViewController and NavigationController

I'm having a problem pushing a UITableViewController onto a NavigationController. With the following code: ProblemEditController *problemEditController = [[[ProblemEditController alloc] initWithNibName:@"ProblemEditController" bundle:nil] retain]; problemEditController.problem = [[Problem alloc] init]; [self.navigationController pushVie...