iphone-simulator

What is the best way of solving memory leaks on the iphone ?

Please suggest the best way of solving memory leaks on the iphone. What is the best use of release, autorelease, retain and which cases do each apply? ...

getting Xcode to build my iPhone app on the iPhone Simulator after setting up my physical iPod to test with?

Hello. I am new to developing apps for the iPhone. I just went through the entire process the other day of properly setting up my developer account to allow me to test my programs on my physical iPod. Once I set it up though, I was not able to figure out how to get the iPhone Simulator working again. I would like to test my programs ...

download a .mp3 file on Website with NSSURLConnection

Hello, I want to download a .mp3 file on a Website with NSSURLConnection, however only the first 357 bytes of the 2.5 mb file are downloaded. I tried to increase the buffer size and the timeout of the request, but I still can't get the entire .mp3 file on the iPhone. This URL of the file is: http://dl.mp3.kapsule.info/fsfsdfdsfdserwrw...

Error getting default device UID: '!obj'

Hello, I am getting this error in console while i m run app in simulator Error getting default device UID: '!obj after this error app freezes its running on my device but when i shift my code to another system then its generating such problem I dont think there is any error in code bcz its work fine on my 1st system Thanks ...

Flickering animation with UIViewAnimationTransitionFlip

I have a containerview with 2 subviews. I want to flip from one to another. The problem is that some kind of flickering appears. It doesn't happen on the iPhone 3GS, but on the Simulator and the iPhone 3G: http://www.hanspinckaers.com/upload/Flickering.png Does anyone know why this happens? This is the code: [UIView beginAnimations:ni...

iPhone OpenGL ES alpha blends as white in simulator, gray on iPhone

My problem is incorrect alpha blending using OpenGL ES 1.1 on iPhone. Unlike many other peoples' issues with this, textures are not involved. I am drawing dozens of small white circles on a light blue background. Each circle is a drawn as a GL_POINT. I am animating a fade from alpha=1.0 to alpha=0.0. Everything works perfectly in the iP...

What is the Maximum Allowed File Size for downloading using NSMutableURLRequest

Hi there, Part of the functionality Ive written for an app is downloading zip files from a server using NSMutableURLRequest. All works until I try to download a file approx greater than 12MB. The iPhone is on wireless lan. I was wondering if there is a limit or max chunk size to implement when downloading larger files? I fails for these ...

About MPMusicPlayerController and does AVAudioPlayer works in iPhoneSimulator?

From http://stackoverflow.com/questions/2111866/iphone-can-i-do-audioservicesplaysystemsound-looping-with-scheduler MPMusicPlayerController doesn't work because it is about iPod music library and I can't add a music file to it since I'm doing an iPhone game and not interacting with the outside iPod library. Does AVAudioPlayer works in ...

How to measure position of UI objects on iPhone simulator screen

I have calculated positions and offsets on paper. I have written code and debugged that I get expected results. However on iPhone Simulator things are overlapping by about 15 pixels. To go on with my debugging, I need to know where exactly UI objects are on the screen. Related to popup search keyboard and resizing a UITableView between...

dialing on iphone/ipod touch not working with documented procedures

I'm trying to set up an iphone app to the phone number of a various sports store using the tel:// url passing method- I am developing on an ipod touch- usually on the touch you see the error message "Unsupported URL - This URL wasn't loaded tel://99887766" when you try and dial a number. I cant get this message to appear on the simulato...

Xcode Instruments: peak RAM of iPhone apps running in Simulator?

Is Activity Monitor (a.k.a. Memory Monitor) the only tool in Xcode Instruments that can measure the total app RAM usage of an iPhone app running in Simulator? Just that line showing momentary wired RAM? And how accurate is that versus iPhone hardware, especially given OSX paging i/o to VM? I'm seeing 7-8MB wired RAM figures for just th...

How to process Reference Movie in iPhone app?

I followed Apple tutorial, Apple - QuickTime - Tutorials - Reference Movies, to create reference movie in my web site. In summary, "A reference movie contains pointers to alternate data rate movies--that is, multiple versions of the movie designed for downloading at various data rates". In my app, I use MPMoviePlayer and provide it wit...

How to force application Settings bundle get updated?

Application Settings.bundle contains a version number, which is automatically generated during build. From build log I can see that new value is written there, also when looking inside the file itself in MacOS X Finder I see correct updated value. Settings in iPhone simulator or in real iPhone shows me the old value. Removing applicatio...

How can do I test a camera in the iPhone simulator?

Is there any way to test the iPhone camera in the simulator without having to deploy on a device? This seems awfully tedious. ...

Creating a libsubstrate for iPhone Simulator.

Hi there. I am working on mobilesubstrate plugins on a JB iPhone. i have created a dylib in xcode for my iphone which builds fine for Device, but when i try to build it for Simulator, it gives me an error "_MSHOOKMESSAGE reference from: blah blah". I have placed all the headers in proper locations. I got libsubstrate from device but tha...

Exception thrown after install xcode 3.2

Hi, everyone. I found this problem after I install the latest SDK and Xcode version 3.2 Beta from Apple. Before install, my iPhone project compile correctly and has no any exception. But after I finished setup the latest SDK, I open my iPhone project to do some update. I compiled the project like I did before, no error report. But aft...

MonoTouch build fails

Okay, I have been building using MonoTouch for about 6 hours and I have hit a wall, what ever I do to try and run and build my application I get build failed, but the build window is not tell me why it is failing. The code is very basic and is correct. Could anyone help me out here please? Building: HelloiPhone (Debug|iPhoneSimulator)...

NSDateFormatter and date conversion not working.

I am developing an app for the iPhone where I need to convert an date from an XML feed into just a HH:MM format. I have the following method that doesn't work and I have no clue what I am doing wrong. As an example, the timeToConvert string would be: "Mon, 01 Feb 2010 21:55:00 +0100" (without the quotes) The method works when the regi...

how to give background color for selected text in text view

how to give background color for selected text in text view ? hi, Im developing text view based app. in that i have to change color for selected text. i tried using delegate methods but i not found any property like this. if any iahve any ideas , suggestions how to overcome this issue. thanks in advance ...

Iphone simulator change my database sometimes

Hi, I noticed that now and then my app can't find my database sqlite file anymore. It copies a new one and i am left with an empty database. I also noticed sometimes it switches to a previous database file, and i suddenly see data i filled in another time. I think and hope this has something to do with the iPhone Simulator and not with...