iphone-simulator

Is there a shortcut to changing settings (esp. locale) in the iPhone Simulator?

I was wondering if there's any way to speed up changing settings in the iPhone Simulator: the general case here is a way to improve repeatability of testing an app across a number of predetermined configurations, but more specifically, it'd really help if I could change both 'language' and 'region format' in Settings.app to a specific ...

How to test the app in iPad?

HI, everyone, I want to ask a question about the iPhone. I am writing a iPhone program, but I can only test the program in the iPhone simulator. Can I test the app in the iPad simulator? thank you. ...

Using core location on iphone simulator

I am developing an GPS based app. So I was wondering how could I simulate location on iphone simulator? I downloaded an sample app locateMe. This app does not work on simulator. Does simulator not support location api? Any help would be appreciated. ...

iPhone Simulator running old version of code with iOS 4

I'm having problems with the iPhone Simulator running an out of date version of my app binary with iOS 4, since it seems Xcode is not killing the process completely, hence the debugger is picking up the app process from the previous build/debug cycle, even if I click the "Kill" button on the toolbar. Does anyone know a way of forcing th...

Objective C/Xcode error: The file “Info.plist” couldn’t be opened because there is no such file.

Hi I hope this error doesn't sound stupid. However, I receive this error and I don't know how to fix it. What happen is that I deleted the whole Resources folder before and copied in a new Resources folder. Could anyone help me fix this? Thanks. ProcessInfoPlistFile /Users/tohchinsheng/Documents/cocos2d-output/Debug-iphonesimulator/U...

Formatting UITableView Cells in iphone

Hi All, I am developing an iphone app. In the image below I want the first name to be in plain font and the last name to be bold.. How can I do that?? please suggest me..Please check this image Another ques..Now I think the reverse way but the problem here is the first line and second line you see are part of the same string. I want th...

Change iPhone Simulator's window position on my MacBook Pro dual screen setup?

iPhone Simulator is version 4.0 (211.1) I know, this is a weird question for S.O., but I figured if anyone has seen this, it would be someone here. I have a MacBook Pro with a 22" lcd attached. I run the 22" as my "main" screen with the dock and I use the MBP's display as a secondary. I want the iPhone Simulator to run on the actual ...

Storing and retrieving C struct in NSMutable Array

I have the following C Struct defined : typedef struct { float x; float y; float z; } metric; I want to store accelerometer points in an array and do something with it later. So I have a mutable array that is initialized like so in my viewDidLoad method : metricsArray_ = [[[NSMutableArray alloc] init]retain]; in my di...

Can I use only one iphone 3GS test my app's bluetooth mode?

I have developed an app ,and it supports two people play game through bluttooth,but I hava only one iphone,I want to test through simulator,but it doesn't work. I must have two real devices? Anyone can help me ? ...

Iphone simulator : Local Notification fires twice but never displays?

Is there a bug with the simulator and Local Notifications or am I doing something incorrectly. // on button click fire off notification for 30 seconds from now -(IBAction)scheduleNotification{ UILocalNotification *localNotif = [[UILocalNotification alloc] init]; NSDate *item = [NSDate dateWithTimeIntervalSinceNow:30]; if (localNotif ...

iPhone camera in simulator

Is there a way to test code using iPhone camera in the simulator? (Somebody must have written something - you could have a replacement component that simulates the camera) ...

iPhone _NSAutoreleaseNoPool() problem

Hi I have this in my main.m: printf("make autorelease pool \n"); NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, @"UIApplication", @"MyAppDelegate"); [pool release]; return retVal; And i suddenly started to get this when I run my app on the simulator: 2010-08-27 11:09:35.909 My...

EXC_BAD_ACCESS on device, but fine on Simulator

I have a scroll view app which runs fine on the simulator, however, when installed on the device, it gives me an EXC_BAD_ACCESS, when i attempt to scroll one page. I have ran it through Instruments with Allocations and Leaks, but nothing is leaked and no zombies are messaged... i'm just curious what could cause such a difference in simul...

My application is trying to hijack my own application?

I'm developing a iPhone application and until now not big problems. But today I had a weird problem. When I run my application in the simulator, everything works fine. But when I run my application on my iPhone 3GS I get a SIGABRT signal in the XCode and the following message on the console of my device: Sat Aug 28 12:00:56 Peters-iPhon...

Color consistency between Photoshop, iPhone Simulator, and iPhone

I've been working a lot with Photoshop .psd files recently and have been bouncing back and forth a lot to ensure colors look just right on the iPhone. Can anyone offer some tips on calibrating macbook/apple cinema displays in regards to keeping color consistency between Photoshop, the iPhone simulator, and physical iPhones? ...

How to show textfield hides under pickerview in uiscrollview based application in iphone ?

Hello, In my application i have to design a form which includes 21 controls.From this 21 controls 12 controls need to act as a drop down. As there is no inbuilt facility of drop down in iphone sdk so i have to use pickerview. So for this 12 control i have changed their look like drop down by adding image in right mode. In viewdidload me...

How to save the value of indexpath.row

Hello I have a problem in my code. I have an application TabBar controller, with 2 tabs. The first tab is a map, and the second a list of cities(table view). When I click in a city, the application center the map in the city that I selected. So far so good. My problem is that I have a refresh button on the mapview, and I want that, when...

WIll the iphone simulator run a naked command line?

Does the iphone simulator require a bundle? I tried to run it on a plain executable and got Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 UserInfo=0x1002336c0 "Unknown error." using the open source iphonesim driver. ...

Configure IPhone settings Programmatically..........

I have been developing an app where i need to configure the IPhone settings programmatically like SMS,MMS,Voice & Data. Over settings page I need to set the limits for SMS, MMS , Voice & Data, so that user cannot use it more than that...... Main thing is to set the limits for all of above ...I googled alot & didn't find any kind of hel...

timer differently behave on simulator and device

Hi frends my problem is as under: timer1 = [NSTimer scheduledTimerWithTimeInterval:1.0/5 target:self selector:@selector(Loop1) userInfo:nil repeats:YES]; timer2 = [NSTimer scheduledTimerWithTimeInterval:1.0/5 target:self selector:@selector(Loop2) userInfo:nil repeats:YES]; timer3 = [NSTimer scheduledTimerWithTimeInt...