iphone-simulator

Why is the iPhone Simulator 3.0 not showing up in Xcode?

I have installed the new 3.0 SDK, but when I start up Xcode, I don't see an option to build for "Device - iPhone OS 3.0" or "Simulator - iPhone OS 3.0" The Xcode About box says I am running: 3.1.2 Is there something else I have to do? ...

Did iPhone Simulator 3.0 break two-finger div scrolling?

I recently upgraded to iPhone Simulator 3.0, and when I do a two-finger scroll on a div (in Safari or UIWebView), it no longer works. To do a two-finger scroll in iPhone simulator, hold option to get two fingers, hold shift to lock the fingers in place relative to eachother, and then click and drag the div. You can try scrolling the ex...

UITabBarController, UINavigationController and autorotate

i have problem with autorotate on iphone i set up in all classes - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } but it is not respond ;/ Sample code is: http://b6.s3.p.quickshareit.com/files/testautorotatec...

Default.png shows in simulator but not on real device iphone?

i have added a splash screen to my application by adding Default.png. the splash screen works fine in the simulator but not showing on real device ...

How to render the iphone device screens on mac OS or in windows

We have an iphone device in our company and for the remote demo purpose I have to show some of the device specific features like voice call, accelerometer etc. (which is not possible on a iphone simulator), from a mac / windows system. Is there any way to render the device screens on mac /windows machine? Advance Thanks, Sathish ...

Where does the iPhone Simulator store its data?

I have a SQLite DB that I'm using to store app data, and I could do with taking a look inside it to debug a problem I'm having - but where does the iPhone Simulator store its data, typically? ...

Using Finch to play sounds on iphone

I have an application which has two kinds of sounds: 1. Background sounds, looping forever till next view. 2. Sounds clips that could be played separately or all in one go. Previously i tried using AVAudioPlayer but there was always a very little silence interval between two clips (to which i didn't find any solution, if you have one, p...

iPhone Programming in Mac OS X runnning not in a Mac Computer

Good day. This is not really a programming question, but i think there is people here that are the ideal for the question i have to ask. I see all day long question about "programming for iphone", and now i'm curious, and i want to try some too. For that i need a Mac OS X, no question about it.. But i have a problem i don't have a Mac...

Why can't I write files to my app's Document directory?

I have found several snippets of code describing how to write data to a user's application Documents folder. However, when I try this out in the iPhone simulator, no files get created. I called [NSFileManager isWritbleAtPath:<my document folder>] and it returned 0 (false). Do I need to make this folder explicitly writable, and if so,...

Using system Sound to play sounds

Here is the code: -(void)stop { NSLog(@"Disposing Sounds"); AudioServicesDisposeSystemSoundID (soundID); //AudioServicesRemoveSystemSoundCompletion (soundID); } static void completionCallback (SystemSoundID mySSID, void* myself) { NSLog(@"completion Callback"); } - (void) playall: (id) sender { [self stop]; A...

create .ipa for iPhone

i developed one application for iphone. after i build i got .app file in build folder my application name is Myapp, then i got Myapp.app file in the build folder. my problem is i want to create the .ipa file.. how is that.. it is for to install jailbraked iPhone.. thanx and regards... ...

AVAudioPlayer not responding

I initialize an AVAudioPlayer instance: NSString* path = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"wav"]; AVAudioPlayer* player =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:nil]; //Returned object not nil, indicating that the file has loaded successfully BOOL b = [player prepareToPlay];...

Reading filenames from iphone application folder

i write some image files in to iphone document folder. then i have to retrieve that files name in an array. please post some code. ...

iPhone 3GS Simulator

I want to test the Voice Control feature of iPhone 3GS through the simulator. But I don't seem to get the simulator for 3GS. Where can I get one..? ...

Taking the highlight off of Icons

When programming and looking at all different apps I have realized that some apps in the app store don't have the lit highlight on the top, making it look more 3D. I have an app idea but I need to take the highlight off. The app have been programmed in Xcode, so if anyone answers, that would be great. Thanks! ...

Gradient trick changed in iPhone 3.0 SDK?

I'm using a trick to get gradient on my table cells. After I upgraded to the iPhone 3.0 SDK i noticed that the gradient highlighting, when I select a cell, no longer works. iPhone 2.2.1 iPhone 3.0 Here's the gradient code: - (void)drawContentView:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); UIColor *tex...

Failed to launch simulated application: Unknown error.

OS X 10.5.7 (genuine Mac) Xcode 3.1.3 iPhone SDK 3.0 When I try to execute my iPhone application in simulator, I get the dreaded error message: Failed to launch simulated application: Unknown error. My application has two targets, but this error occurs on both of them. When error occurs, the simulatoed OS hangs it displays blac...

Why does a file appear localized in the iPhone simulator, but not on the device?

Hi, I have an iPhone localization problem that has me perplexed. I was localizing my app and had English as well as simplified and traditional Chinese working fine. I have two files, Localizable.strings and sounds.plist which have been localized. Strings in both files appeared correctly on the device and emulator. Now yesterday I am ad...

Cannot reopen closed application on emulator

Hi, I'm making my first iPhone app. I could solve most of my problems browsing stackoverflow and apple's doc. But now I'm stuck. it's probably a stupidity, but I don't find it. When I start my app on the emulator using [x]-r I don't have problems. But after my aplication go in the background (close?) because user press the home button...

Bug in XCode debugger?

I am working on an iPhone app which is using an external library for which I have the source. During debugging some of the objects are listed as 0x0 in the debugger but the app runs fine. Also, some of the objects addresses point to the wrong thing. These symbols are in the external library. The addresses are fine if I am tracing throug...