iphone-simulator

Info button vanishes from view

I have a view xib that contains an info button. I'm doing animation on the UIView by adding CALayer objects to the view's layer and animating these layers. I'm careful to place these layers behind the info button by moving their zPosition. The problem is that on a real iPod touch the info button does not show in the view, even though it'...

How do I turn off slow motion in the iPhone simulator?

I don't know if it's because I'm using a Mighty Mouse or what, but I keep accidently turning on Slow Motion when using the iPhone simulator. How the heck do I turn it off? ...

How do I debug when implementing the handleOpenURL message?

I'm writing an iPhone app that can be started via a custom URL. So, I override - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url To test my changes, I have to run the app in the simulator, then quit out and launch Safari. I then type in my custom URL in the address bar to launch the app. But every time I laun...

strange splash screen problem in iphone native application?

i have a application i put Default.png for splash screen according to apple's documentation.the splash screen is displaying fine.but when i delete the Default.png and references of png.it does not removed it is still showing the splash screen.i am running the program in simulator.? ...

Importing AddressBook data into the iPhone Simulator

Is there an easy way to import AddressBook data into the iPhone Simulator? Right now my only assumption is to manually modify the SQLite files found in the /Library/Application Support/iPhone Simulator/User/Library/AddressBook. ...

UIDevice Orientation

I have the following code in a method. When I run this in the simulator the debugger skips right over the code?? What am I missing? if (([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeLeft) || ([[UIDevice currentDevice] orientation] == UIDeviceOrientationLandscapeRight)) { } else { } ...

Sharing iPhone Apps for the Simulator

iPhone Apps built for the simulator are stored here: /Users/<username>/Library/Application Support/iPhone Simulator/User/Applications Is it possible to copy the <GUID>.sb and <GUID> directory and install them on a different computer (with Development tools installed)? This would be very useful for testing/demoing with out having to b...

How do I speed up app launch in iPhone Simulator?

The problem is that my app saves hundreds of megabytes into the users document directory on their iPhone. During testing, the iPhone simulator takes a long time to launch the app on each build as it is copying all of this data to a new documents directory each time I rebuild. Is there any solution to this that will just leave the directo...

How to get an iphone application to resize correctly on orientation changes?

I have an iphone app, with a view (well multiple but let's say one at a time). The view is very simple just some text-fields and images on there. I have set the auto-resizing attributes for those controls so that they know that they need to be centered no matter what the orientation is. There is no code that moves them or anything, every...

MPMoviePlayer crashes in device but works fine in simulator

Hi All, In my app i am playing a video using the following code. NSURL *myURL = [[NSURL alloc] initWithString:downloadURL]; mMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:myURL]; if (mMoviePlayer) { [self initMoviePlayer]; [mMoviePlayer play]; } This code is working fine in simulator, but when i test ...

Autorotation And resizing

Hi All.. M developing an application which starts with a login page. After loggin the user will see a tableview.Selecting a row he will be directed to a web view showing a HTML content. Till here everything went fine.Now i want to see the webview in a landscape mode.I have dismissed the login view.The project template is view based. ...

Is it possible to load a separate application into the iphone?

Hi Friends, I am having a iphone and i have created an application using Xcode. Now i want to move this application into my iphone for my use. How can it be done? I tried to copy my application to the iphone Applications folder using the phone view software, but i'm not able to open my application in the iphone. It shows the error ...

Command /bin/sh failed with exit code 126 Error in xcode

hi friends, "Command /bin/sh failed with exit code 126" This error comes when i tried to run my app in simulator please tell me the solution .. thanks, Creater7 ...

My iPhone Simulator 3.0 AddressBook is empty!

Anyone know how to repopulate my Simlator's AddressBook with Johnny Appleseed, etc? Or, my own data. Doesn't matter.. It's just that it's somehow empty now and useless for testing. ...

How to test iphone p2p aplications?

Is there a way to test iphone OS 3.0 p2p applications? Can I run multiple iphone simulator instances? Aperantly no. Any help? ...

EXC_BAD_ACCESS when moving iPhone app from 2.2 to 3.0 simulator

Well I had an app I was developing in iPhone SDK 2.2 and I recently built and launched it in the 3.0 simulator. The base SDK is still set to 2.2. I figured that would avoid issues. Instead I get Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000a1b1c1f3 Crashed Thread: 0 Thread 0 Crashed: 0 ...

UIWebview is slow on the iPhone device, fast on simulator

I am loading a webpage from an external server using UIWebView. The page loads very slowly. Using Edge, it takes ~30 seconds. Using WiFi, it takes ~5-6 seconds. The same page is much faster when loading directly through Safari. In the simulator, the UIWebView is very responsive. Has anyone had any experience in increase the performanc...

How do I automatically run my iphone app after building it?

I'm using google unit testing code. I'm building it quite nicely with xcodebuild on the command line. Now I want to run it (preferably on attached Device but simulator would also work) and catch all the feedback from the tests. But I can't find out how to run it. Any ideas? ...

how to count tap in simulator ?

how do i count double tap in simulator? ...

Keep App directory the same when building for iPhone Simulator?

Hi there; I'm building an iPhone app, and my app copies a bunch of resources to the App's Documents directory on first install. While I'm developing the app, I simply modify files in the App's Documents directory for the iPhone Simulator to make it easy to test out things without having to rebuild the app. But when I do rebuild the ap...