iphone-simulator

NSDateFormatter incorrect date on simulator, correct date on device

Hi, Im building a calendar and to find out the first day of the month I do [formatter setDateFormat:@"e"]; int startDay = [[formatter stringFromDate:newDate] intValue]; On the device this works correctly and the 1st of the month is on the correct day. But on the simulator it is the day after. Although it doesn't overly matter about ...

How to test an iPad app's speed without an iPad when the simulator runs faster?

Title says it all: I have some operations in my iPad app that are CPU-intensive, and I'd really like to be able to test them on the simulator, making sure things will still run smoothly on the actual iPad. Is there any way I can do this? ...

Iphone App crashing on launch

Hey, My simple iphone app is crashing on launch, it says "the application downloadText quit unexcpectedly i none of these windows that pop up when a mac app crashes and has a send to Apple button. My .h is below and i would greatly appreciate it if anyone could give me a hand as to what's wrong? thanks, Declan ` #import "downloadTextV...

Preferences bundle -- iPhone vs. Simulator

I have a preferences bundle that exhibits different behavior in the simulator vs the phone. The basic problem is that the default values of my preferences are getting read fine on the simulator but are coming up NULL on the iPhone. Is there some kind of special initialization I have to do for the device in order for these to be seen th...

iphone location works in simulator with local code but not on server?

so this is really weird to me but my code works properly for getting the geolocation if I run my code locally in the simulator, If I have the code on my server it does not work in the simulator, yet the same url and code on my server works on my actual iphone? It seems to not pick up on the geolocation javascript when its on my server in...

Address Book Groups - iPhone Simulator

Hi All, Is there a way to set up groups on the iPhone simulator? I want to set up a specific group on the iPhone and insert contacts into that group... I've presented the address book modally like in the tutorial but in trying to access groups, I've realised there's no option... Thanx Stef:-) ...

how to display image in MFMailComposer?

Hello all i want to display an image in mfmailcomposer it shows when i add it to attachment but not at the exact place where i want to show it how do i show image in mfmailcomposer. also does someone knows how to launch safari when click on a url in mfmailcomposer? ...

Is it possible to download and run IPhone apps on an IPhone emulator?

Hi, I am tasked to provide an IPhone client app for our SaaS website. I have never written an IPhone application, nor do I have an IPhone at the moment. Before I can decide whether or not I want to do this myself or outsource this, I'd like to try a few apps myself to get a feeling for the UI. Is there any IPhone emulator I might use ...

iPhone: Can access files in documents directory in Simulator, but not device

Hi there! I'm writing an app that copies some contents of the bundle into the applications Document's directory, mainly images and media. I then access this media throughout the app from the Document's directory. This works totally fine in the Simulator, but not on the device. The assets just come up as null. I've done NSLog's and the ...

Xcode linker error on iPhone app (Only on simulator)

Im getting this linker error that won't let me compile. It only happens on the simulator. KEY POINTS: - Happens only in simulator - Similar to THIS question, but found no FRAMEWORK_SEARCH_PATHS in my .pbxproj file - Though my OS is 10.6.2, I had to build target 1.5 to avoid other linker errors - libxml2.dylib IS required and is in my ...

Custom uitoolbar gets partly hidden

I'd like to add a custom UIToolbar to my UIViewController. In Interface Builder I add the uitoolbar at the top of my view, and it looks just fine. However, when I run the app in the Simulator it gets hidden by the default iphone bar (this one with the clock, battery status, etc.). Here you can see how it looks like: Any ideas? ...

App freezing after lunch without any Error on Iphone Simulator?

HI.I am using CoreData on my UITable to show some records.It works when I first run.But if I run my app on simulator second time it shows up with data but then it stops.Sometimes it quits from app or it only froze and i cant click on table or tab bar. I looked also on Console but I thought there is no error.Here output from console The...

Is there a way to set the amount of memory available in the iPhone Simulator?

Does anyone know if its possible to set the amount of memory available in the simulator? I'm assuming the simulator will use as much memory as possible from the system but this makes it more difficult to recreate certain low memory crashes/bugs. ...

Simulated iphone app quits, whenever I turned on debugging.

I always build my app choosing with 'Build and run' (not 'build and debug'). While the app running smoothly I opt to put a breakpoint over a line. When I do this the simulated application suddenly quits with a message 'Loading debugger..,Debugging terminated'. ...Actually, this happens only on putting breakpoint on first time. Any he...

Why do I have memory problems?

I got this error from XCode: objc[8422]: FREED(id): message release sent to freed object=0x3b120c0 I googled and find that is related to the memory. But I don't know which line of code I go wrong, any ideas? After I launch my app in simulator, it prompts a second, than, no other error except the error above. @implementation MyAppDele...

iphone - How do I add videos to iPad simulator?

No, dropping the videos to ~/Library/Application Support/iPhone Simulator/3.2/Media/DCIM/100APPLE does not work totally, because the simulator can see the video on Photos.app, but when I try to pick a video using UIImagePickerController my application crashes. I think this may have some relation to the format the video has to have. I...

iphone simulator shows blank screen

When I run iPhone simulator (SDK 3.1.3, MacOS 10.5.7) standalone or from XCode - I see only black screen. In the console I see a lot of: "invalid pixel format" "invalid context" Any ideas what happens? ...

how to launch one iphone application from another iphone application

I have made proper changes in the Info.plist of the application to be launched . I have added URLScheme and URLIdentifier in the info.plist. But When i tried to luanch application from safari by using URLSchemes , it says "safari can not open page because address is invalid" I have referred apple's LaunchMe application ,but i could ...

Xcode Fails to Launch iPhone Simulator

I am attempting to launch the iPhone simulator from Xcode, but I keep getting the following error: Error from Debugger: Failed to launch simulator: Operation failed with underlying error: 4294967253. I've found a number of posts where Xcode failed to launch the simulator, but none of them match the specific error code I'm receiving...

iPhone Simulator - SImulate a Slow Connection ?

Is there a way to slow down the internet connection to the iPhone Simulator, so as to mimic how the App might react when you are in a slow spot on the cellular network? ...