xcode

sorting mutable array in alphabatical order

Hi i am having a nsmutable array and in that nearly 50 -60 object having different names ,and can i sort this array in alphabatical order (Is it possible, How?) (is it a duplicate question ?) ...

Is it possible to get multiple MPMoviePlayerControllers in the same view?

I have written code so that technically there should be two MPMoviePlayerControllers within the same view, both ready to play an audio file. What always happens is that one pops up and disappears, and the other comes up and stays, and is fully useable. Any idea why one disappears? I'm not trying to play two at once, just want to give us...

How to avoid "Unable to read symbols for..." warning playing local UIWebView HTML files?

Hello everyone, I have a UIWebView that loads local HTML files. In one of those files/pages I have a video file embedded (with <video> tag) that plays correctly in both simulator and iPad, but in iPad I get this annoying warning message: warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2...

iPhone - Problem switching scenes in cocos2d (EXC_BAD_ACCESS)

My AppDelegate makes the following call to start my game scene: [[CCDirector sharedDirector] replaceScene: [HelloWorld sceneWithResponseDelegate:self]]; When the scene is finished it adds a MenuLayer (which is a singleton): MenuLayer *menu = [MenuLayer layerWithLevel:@"forest" score:score responseDelegate:mainMenu]; [[[CCDirector sha...

Unit tests no longer working after XCode upgrade from 3.2.3 to 3.2.4

Hi everyone, I have just updated my XCode to 3.2.4 and it turns out my unit tests are no longer working. I have configured a target and executable following the instructions from Scott Densmore so that I'm able to debug my tests. I did change the Base SDK to iOS4.1 for my test target (LogicTests) and updated the path to the otest scrip...

How can I resolve this build warning involving a missing i386 architecture file?

I am getting the following build warning: ld: warning: in /Users/syalam/Documents/git/stocktwits-iphone/AudioToolbox.framework/AudioToolbox, missing required architecture i386 in file How can I resolve? ...

Keyboard command to select the details view in xcode?

I'm trying to minimize how much I use the mouse in xcode. Something that would really help me is the ability to navigate through files in the detail view with the keyboard. I know I can use the up/down arrows to navigate through them once one of the files in the detail view is selected, but I don't know how to select one of them without ...

Should I leave passed vars/objects out of the autorelease pool?

I have a thread that modifies a passed pointer to an object (which is alloc'd and retained in the calling thread) in a loop. If I put the pointer in the autorelease pool, I sometimes get errors because the object is being released when it shouldn't. I took it out of the autorelease pool and this seems to work. However, I am worried about...

Set a button background image iPhone programmatically

In Xcode, how do you set the background of a button as an image? Or, how can you set a background gradient in the button? TIA, Linda ...

difference between static and dynamic libraray in xcode for iphone

what is the difference between static and dynamic library in xcode?? and why apple dont allow us to make dynamic lib??? ...

Interface Builder 3.0 crashes on startup

I just bought a new Mac and am running Mac OS X 10.6.4 and trying to run Interface Builder 3.2.4 and when I do it consistently crashes with the following error message: Assertion Message: Unimplemented error handling: You don’t have permission to save the file “Library” in the folder “Interface Builder 3.0”. Thread 0 Asserted: 0 Inte...

iPhone app crashes after loading it from background

I have an app that crashes when i try to load it after it has been put in the background. The first few times i put it in the background and relaunch it by multi-tasking (i.e double clicking the home button and getting the app in foreground) it works fine. But if i keep putting it in background and keep re launching it after a few ti...

Printing a dictionary nicely in Xcode

Is there a way to nicely print dictionaries in XCode during debugging? Selecting print description to console is ugly. ...

iphone Xcode project files encrypt

Hi, I need to send the project files to my client for running it on thier xcode to see the work in progress. Is there any way to encrypt the source files ? I have one option by sending .app file from simulator debug location and ask them to put it on the same path . But i need to send the code with encryption , is that possible ? Thank...

Subversion (SVN) and static libraries (.a files) compatibility ?

Hello everyone, I can't add .a files (static libraries) into my repository. Why ? Is there any way to "force" SVN to accept them (at least as static files...) ? Thank you ...

Do you know any editor, that can handle the Xcode xcclassmodel-files ?

Any time i do a class-diagramm with the Xcode-internal solution, any inheritance-link is missing. But anytime another.. it is not even the same link, that is missing. so, has anyone an idea, how to edit the files manually ? ...

Upgrading xcode loses simulator option

Due to other issues I was having in my project I decided to upgrade my xcode to XCode 3.2.4 iOS SDK 4.1. Now I no longer have the option to pick simulator but instead when I choose 'Device' it deploys to the Simulator!!! Under 'Project Settings I can select 'Base SDK' as either device or simulator. I tried uninstalling XCode full and r...

how to make clear colour in uiwebview

hi i am having a uiwebview and i want to make it transperent as i have image in background in the imageview , i tried webView.backgroundColor = [UIColor clearColor]; but it didnt worked thanks ...

Build and Archive Option in XCode and Submit to iTunes

Although I have already submitted my app using Build And Archive and then clicking on the Submit to iTunes connect I will ask the question anyway. Apple says that select a Distribution profile when submitting to Apple. So, I went on iTunes and downloaded the Distribution profile. I added profile to xCode. I did the build and archive opti...

How to compile Appcelerator Titanium's iPhone project in Xcode?

Hello All, Anybody know how to compile Titanium's iPhoen project in xcode. When I do I get this error. Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 Thanks Saurabh ...