iphone-simulator

Can we use UI Automation tools with the iPhone Simulator?

I’ve been using the new UI automation tools with Instruments and the iPhone SDK 4.0, but so far I haven’t been able to get it to run under the iPhone Simulator. I’ve tried setting the target to every location possible—my build folder, the app folder in ~/Library/Application Support/iPhone Simulator, etc.—but I get an error message when I...

IPhone Web Design Preview

I've been using Safari on Windows and the iBBDemo Blackbaud iPhone Browser Simulator to emulate an iPhone but I have noticed that Safari does not render form elements using the default control styles. Safari on iPhone supplies default control styles that are specific to iPhone. This means my web forms look nothing like they do on an actu...

class_getClassMethod often returns nil (seems to work only with class level Methods)

Hi all, Im currently trying to use some generated code from http://sudzc.com/ This code is not perfectly adapted to my web services, so I tried to add Categories to some of the generated classes and to exchange their implementations with the original ones using method_exchangeImplementations from "objc/runtime.h". (I could modify the ge...

Can Selenium test mobile webapps ?

I need to test, with Selenium or a similar Ruby-aware automated testing tool, how my webapp behaves on iPhone's mobile Safari and on Android browser. How can I do that ? ...

Can Selenium test my app for Mobile Safari and Android browser?

I need to test, with Selenium or a similar automated testing tool, how my webapp behaves on iPhone's Mobile Safari and on Android browser. How can I do that? I usually test my app by hand setting Safari 5 with User Agent = "Mobile Safari", I used iPhoney as well but it's too buggy IMO. ...

Delete all my NSUserDefaults that start with a certain word

[[NSUserDefaults standardUserDefaults] removeObjectForKey:@"Dog*"]; Is there a way for me to "walk" through a list of all the userDefault values in my iPhone app, and only delete certain ones? I.E. All the keyNames that start with a certain word. ...

Does the Xcode provide the iCal in the simulator?

Hi, everyone, I want to ask a question about the iPhone application. I use the Xcode to write the iPhone application about the calendar and the simulator is 3.1.3. However, I cannot see the Calendar app. (The simulator only displays the 1. Photos and 2. Settings). Do I need to set something or download from the Internet in order to se...

iPhone : UITableViewCell: cell carry background color strip

When i used self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"image_name.png"]]; the cell carry bottom part of image and it looks like strip on view ...

Where the iPhone store the calendar information?

Hi, everyone, I want to ask a question about the iPhone application. Where does the calendar information stored in the iPhone? Is it by using EKEvent? ...

viewDidAppear, but where is viewDidShowToUser?

I have an iphone3g with this function running in my ViewController - (void)viewDidAppear:(BOOL)animated { [super viewDidLoad]; } I use a TabBar iphone app. But when I click from tab 1 to tab 2 and debug the secondView Controller it is stopped before the view is actually in the users view. So there for when you click tab 2 until eve...

Try Catch Statement doesn't work on Simulator (but works on iPhone!!!)

Hi I have an Exception catching statement in my code, like the following: @try { for(NSDictionary* s in users) { do something .... } } @catch (NSException * exception) { NSLog(@"APIRequesetBase readUserInfo: Caught %@: %@", [exception name], [exception reason]); } @finally { } So this try stat...

Can't hear System Sound in simulator or on device

Hi all, I can't seem to get the AudioServices sounds to play, either on the device or in the simulator. Here is my code: NSString *sndPath = [[NSBundle mainBundle] pathForResource:@"click" ofType:@"aiff"]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:sndPath], &soundID); AudioServicesPlaySyst...

I am getting error for location manager.

"HELLO, GREAT TUTORIAL MAN.. BUT I HAVE SOME ERROR REGARDING THE LOCATION MANAGER. BELOW IS MY CODE SNIPPET. (CLLocationManager *)locationManager { if (locationManager != nil) { return locationManager; } locationManager = [[CLLocationManager alloc] init]; [locationManager setDelegate:self]; locationManager.distanceFilter = kCLDista...

XCode installs debug apps on the 2nd page?

This is really just a minor annoyance, but whenever I go to test a new project in the iPhone Simulator, the app gets installed on the 2nd page of the simulator's dashboard even though there's plenty of space on the first page. Anyone happen to know why it does this, or if there's a way to get it to fill up that first page? I'd like t...

Error compiling app in device iphone.

Hello, I'm new in this. I work in a litle project that was aborted because the developer go to an other project. And now I'am trying to make changes but i have and error and i don`t know what is. The error appers when I compile in the device, but in simulator works correctly. This is the debug-console message. 2010-08-17 11:35:24.795 W...

Relaunch my application after a phone call made from my application in iphone

Hi All, I am making phone call from my iphone application. After the phone call ends i need my application to launch back automatically. Currently after the call ends the application is not lauching. Could anybody help in this issue. Thanks & Regards Senthil ...

How can I see on my iPhone the rails app is running on my mac via Passenger

Hi there, I'm developing a rails app, now I'm working on the CSS specifically for iPhone, on my mac. I've my app running via Passenger at http://whatever.local It'd be nice to access via iPhone to the same URL so I can test my CSS quickly. But how? Thank you, Leo ...

How to test iPhone app on iOS 3.1.3?

I have an iPhone app which I need to test in an older version of iOS. In the iPhone Simulator, under the Hardware->Version menu, there are the options 3.2 and 4.0. Is it possible to test the app on an older version of the iOS? If so, how do I make it happen? ...

iphone: sleepUntilDate vs sleep

hi guys, here is question: i have 2 threads: the main one and the other. on the main thread i perform anything gui related on the other thread i perform all my calculations on some operation i have to stop the second thread for some seconds, waiting the first thread to do something.... my question: which is the best option and wh...

ScrollView not scrolling when dragging on buttons

I have a scroll view that used to scroll when it didn't have buttons all over it. Now it does, and when dragging the mouse (on simulator) nothing happens (i think because the buttons are being pushed). How can I make this right? ...