iphone-simulator

Iphone simulator polls 'shouldAutorotateToInterfaceOrientation' with every possible option

Hi All! I have a strange problem with the simulator (at least I think it is the simulator only). When I change the orientation of the simulator, my viewcontroller's shouldAutorotateToInterfaceOrientation-method gets 12 calls with every possible interfaceOrientation as argument. I don't know why the methods gets called so often and more ...

Turn off sound in iPhone Simulator

Is there an option to turn off sound, in iPhone Simulator? Or to adjust volume? ...

iPhone 4.0 Simulator: didFinishPickingMediaWithInfo is missing UIImagePickerControllerOriginalImage?

I've got a simple UIImagePickerController which tries to grab the original selected image: if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary]) { if(defaultpicker == nil){ defaultpicker = [[UIImagePickerController alloc] init]; } defaultpicker.delegate = self; ...

NSURLConnection Succeeded with no HTTP Response

Riddle me this: I am using a NSURLConnection on an iPhone Simulator SDK 3.1.2 object to issue multiple sequential (not concurrent) https requests. Everything works fine 95% of the time, but every so often (maybe around 50-100 requests) I get the situation where the delegate method - (void)connectionDidFinishLoading:(NSURLConnection *)co...

No more gdb in XCode console when build for iPhone simulator

Usually I use gdb backtrace to debug my application, but recently I can no longer do it when testing on iPhone simulator. The blue gdb word stops being displayed on console, and nothing happens when I type "bt" or "backtrace". I can still build and debug properly on the device though. My XCode version is 3.2.3. Is there any way to manua...

No finger touch circles in iPhone simulator

I'm developing an app on the iPad, and trying to detect multi-touch events. The events are working fine, but in the simulator, I'm not getting the little circles that show you where you're touching. Not so much an issue for single touch, but for multi touch, it's a big pain. Any idea why these circles aren't showing? I think it's som...

iPhone simulator doesn't quit previous version of app

Running the latest version of XCode, I run into the problem that when I try to start apps on the simulator multiple times. I have to quit the actual running app by clicking twice on the home button (multitasking task manager) in the simulator and quit the app. Otherwise a new 'build and run' simply opens the current running app in the si...

The animation is working in simulator but its crashing on device

Hi...im new to Animation Programming.... My app is crashing in device but its working fine in the simulator... if i keep on dragging on device for few minutes..its crashing.... Can anybody help me please... The following is my code... // HomeViewController.m #import "HomeViewController.h" @implementation HomeViewController @synthesi...

UISlider, thumb do not move

I have slider in my table's cell, here is my slider initialization code: UISlider* slider = [[UISlider alloc] init]; slider.continuous = NO; slider.maximumValue = 2; slider.minimumValue = 0.5f; slider.value = 0.5f; ... //put slider into cell And I can not move this slider's thumb. Why? Please, tell me what I do wrong? UPDATE: if se...

How to retrieve the address book content?

Hi, everyone, I want to ask an question about the objective C iPhone application. In my application, I would like to retrieve the content of the (e,g name, phone, email address) in to my application. But I have no idea about what I need to do? Can anyone provide some information, library or link for my to study? Thank you very much. ...

Simulate iPhone 3.0 with SDK 4.0

Hi, i have xcode 3.1.3 and xcode 3.2.1 installed For sure now I use 3.2.1 with Sdk 4 to develop new apps. But what if I like to test a App compiled with sdk 4 on a simulated iphone that would just have 3.0?? As BaseSDk i use 4.0 and as target 3.0 In xcode 3.1.3 i could select a simulator down to 2.x but with sdk 4.0 i only have the o...

iOS 4 freezes app

Hi guys, I have an app that runs on iPad and iPhone running iOS 3.2, but when I try to install it in the simulator it freezes - unresponsive interface (a UIAlertView at this point), no console messages, no crash logged. When I step through, it gets all the way through applicationDidFinishLaunching and then stops with this list of calls:...

Simulating an update in iPhone SDK?

I have created an app, and then later changed the core data model. I changed the model and this all works fine during development. However to my surprise, when users download the updated version (with the new core data model), the app keeps the old model from the previous version. This causes the app to crash. Is there some way to simu...

Running an older iOS version in the iPhone simulator

I want to test my application on older iOS versions. I am using weak linking for new frameworks and branches in the code for different OS version. But after some complaints from users running iOS 3.1.2, I need to do some testing myself. I don't have a separate iPhone for every iOS version. So, how can I run an older version of iOS in t...

Why won't my project run in the iPhone Simulator?

For some reason, my application will install and run fine on my device, but when I try to install my application on the iPhone Simulator, I get these warnings: ld: warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit, missing required architecture i386 in file ...

How to load the initial view every time an app launches ?

Hi guys, I am fairly new to iphone app development. I am creating an app that has multiple views. Initially it starts with a view for authentication and then load views according to user interaction. When I build and run the app - the first time it shows the "Default.png" screen and then shows the first view where I do my authentication...

sqlite3_bind_text not binding the values

Below is my code NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *dbPath=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory , NSUserDomainMask, YES); NSString *documentsDir = [dbPath objectAtIndex:0]; NSString *writableDBPath= [documentsDir stringByAppendingPathComponent:@"mydb.sqlite"]; success = [fileManager ...

How do i compare two traces in instruments for iphone

After recording a memory leak trace in instruments for iphone simulator, how do I compare it with another memory leak trace ? How do I make instruments to show only the new memory leaks which are different from the other compared memory trace ? Thanks, -Viral ...

How to create an authentication token for a message sent to the server ?

Hey Guys, I am creating an iphone app in which I have to POST some data to my PHP server. For example I do a HTTP request like this: http:example.com/append.php?data1=X&data2=Y&token=Z X and Y are my known data and I want to calculate Z with some algorithm that takes X and Y are inputs and produce Z. So when I receive X,Y,Z in the s...

iPhone Simulator Apps Crash

I am trying to run my app in iPhone Simulator, but it crahes on the start. Moreover, default apps (settings, Safari etc) crash too. Console doesn't show anything except [Session started at 2010-07-23 13:44:07 +0400.] Failed to launch simulated application: Unknown error. and there are no crash logs in /Library/Logs/DiagnosticReports. ...