Does removeObject release the object in an NSMutableArray of objects?
I was wondering when you remove an object using removeObject in an array if that removed object is handled properly. Would the object being removed be released? ...
I was wondering when you remove an object using removeObject in an array if that removed object is handled properly. Would the object being removed be released? ...
I apparently changed something in an iPhone Xcode project, and now when it precompiles the headers I'm getting In file included from [...] /Foundation.framework/Headers/Foundation.h:8, from [...] /UIKit.framework/Headers/UIAccelerometer.h:8, from [...] /UIKit.framework/Headers/UIKit.h:9: /Developer/Plat...
I have an app that worked just fine in version 2.2.1 of the iphone, but have ran into an issue when I upgraded my dev iphone to 3.1.2. Before, dialing a number worked fine, as when the call was ended, my application was loaded. Now, after I hit end call, it loads the default phone application. Does anybody know why this is? I've looked a...
Hey guys, I'm having a problem with doing a sendSynchronousRequest failing. It only fails after I try to get the current geolocation and the user hits "Don't Allow". And it only happens under 3.1.2. (As far as I can tell. It works fine in 3.0.1.) Here's what I do: I set up a very basic test app, that has almost nothing in it. In appli...
Hey All, I was wondering what I should use to display an image on screen every time the user presses a button. I am using Objective-C/CocoaTouch on the iPod Touch. I would like to pull these images from an array I have set up and place them on the screen when the button is triggered. I feel dumb asking but any one that can point me in ...
on iPhone NSLocalizedString returns the string in the language of the iPhone. Is it possible to force NSLocalizedString to use a specific language to have the app in a different language than the device ? ...
Do you have a sample code for the UIButton animation of the AppStore Price -> to Buy button. I tried a lot, but it doesn't work well with CAAnimationGroup (scale+translation) and it doesn't work with just setting it to the new frame-size in a UIView beginAnimations. The animation first sets the new width(immediatelly) and then the new or...
So I'm trying to do collision detections between sprites in cocos 2d. Although I think I may be asking too much as it crashes and the compiler doesn't give me an error, the iPhone simulator just freezes and then gives up. There's a lot of looping involved so I'm guessing it's just too much... but I can't be certain. My intention was to ...
I need to change the background of one of my Views based on a property that will be set when the View is initialized. Is this possible? I've got the background set as a UIImageView and if I set it to an Image in Interface Builder it works, but I can't change the background programatically. Here is the code I'm using (I based it off a tu...
What is the most memory efficient way to loop through an NSMutableArray of custom objects? I need to check a value in each object in the array and return how many of that type of object is in the array. ...
I tried many things, i can't display multiline texts from database into uitextview, the \n characters appear as they are instead creating new lines. NSString *aDescription2 = [NSString stringWithCString:(char *)sqlite3_column_text(compiledStatement, 2) encoding:NSUTF8StringEncoding]; The problem must be here, because if i hardcode the...
I need to view some of PVRTC-compressed textures from iPhone application (*.pvr) on OS X. Is there a viewer or format converter? ...
Hi, Im planning to create an Alert view with three buttons, my problem is I want to make the UIButton to custom and change its image. Thanks a lot. ...
Hi All, I have a small problem with UINavigationController animation between two view. My application build more than two view, first view contains login information, second view contains root menu, last view contains sample data and so on.. My MainWindow.xib contains a UINavigationController component which is contains all navigation s...
I have a very simple entry form. After a button is pressed, I need to show two additional views launched from that view. Here is the error. I am not understanding the error. I thought I had declared two different types. Comments appreciated. 009-11-03 17:17:29.008 eProcessing-iPhone[34257:207] *** Terminating app due to uncaught excepti...
Hi I build a parsing algorithm using NSXMLParser. Im having doubt as to what is the best strategy for keeping my memory usage on a minimum. I have a valueObject (e.g. "Person") this object has ≈ 30 NSString properties, while parsing the xml I continually alloc and release a temporary Person object as the nodes are traversed. I checked ...
Hello, I have been developing with objective C and the Cocoa framework for quite some time now. However it is still not absolutely clear to me, when am I supposed to set object references to nil. I know it is recommended to do so right before releasing an object that has a delegate and you should also do so in the viewDidUnload method f...
I have an ad-hoc provision profile for my iPhone application and I have installed them on several devices. If I need to add a new device, I will need to re-compile the application with the new mobileprovision file so that it can be distributed to the new device. But what about those existing devices? Do I need to re-deploy the re-compile...
I have seen this question pop up a few times but the authors see to be satisfied with the wrong answer, so I will ask again. When picking a movie out of the user's gallery, I am given a MOV in the tmp directory but I am not given the thumbnail for the movie now in the 3.1+ sdk. In sdk 3.0, you get a jpg in the tmp folder but this beha...
Is it possible? From what I have heard it is. I wouldn't mind just programming them in raw Objective-C. If someone could give a link to the UIKit frameworks and stuff. My iPod touch is jailbroken and I could use its frameworks, but then I couldn't utilize 3G, Camera, Phone. Please help! ...