xcode

cannot add image files to xcode resourse folder....

hi friends.. I tried adding images to my xcode resourse folder by drag and drop. But its showing me the error cannot add the image... can anyone tell me what is going wrong... i had previously added images like this and that had worked .but now its not working... ...

Developing for iPhone OS 3 and 4 on XCode 3.1.2

Hi Everyone, I am new to iPhone programming and have a MacBook running Leopard with XCode 3.1.2. I want to use CoreData to read and write to plists, but I read on http://tapity.com/iphone-app-development/readwrite-data-on-the-iphone-property-lists-sqlite-or-core-data/ that CoreData is only available on iPhone OS 3.0. Right now, I am dev...

"There was an internal API error." while running an app on any iPhone/iPod-touch device

I am in the process of submitting an iPhone app to the app store. While making the final touches to the app I was in the process of compiling and running the app on my iPhone when I got the message ... "There was an internal API error." The console had this to say ... 25/08/2010 10:10:54 Xcode[3556] Failed willExecute: Error Domain=c...

Xcode, building and dylibs

Hello, I've looked at a few related questions and cannot seem to find a solution for myself. Basically I'm using the libmp3lame.dylib in my Xcode project. The install process for lame produced the .dylib and placed it in usr/local/lib and to get Xcode to build and run the project I changed the Library Search Paths to include the above ...

oraganizing projects and utility classes

I have some Utility Classes. Developed them for one project, but going to re-use them in others. What is the best way to organize this - avoiding copy and paste etc. Should I build one project with just the utility classes and make the actual "Product Projects" depended on this "utility project" ? ...

Setting the nib file results to the simulator work, but the iPhone device not load.

I set the Target > info > property > main nib file as MainWindow, in the simulator, it works, but in the device, the screen black, and no "viewDidLoad" is called. What's wrong with that? Thank you. ...

iPhone/iPad/iOS: tricky use of tab bar controller

Hello, Trying to implement the following behavior on an iPad. I have a map-centric application which uses a tab-bar interface. The tabs at the bottom allow the user to choose between looking at the various different types of points that are marked on the map (e.g, think of the tab-bar items "food", "lodging" and "gas", where the "food...

Xcode project — old files warnings

Hi, I have a lot of warnings in my Xcode project about old files that have been deleted from my project and from the project's folder. I have tried to delete the "build" folder of the project. Any suggestions? Thanks! ...

change background color of navigation item (bar)

Hi, is there an easy way to change the background color of the navigation item on top of a view? I have a navigation based app and I only want that one view gets another background color. I created the views mainly with IB. I found the following solution (not tested): float r=10; float g=55; float b=130; float a=0; UILabel *label = [[...

Xcode can't find Info.plist or Prefix.pch when making a Release build

I have a project that shares some files between a Mac application and an iPad app. Because of this, I moved the Info.plist and Prefix.pch files for each one into sub folders for Mac and iPad, respectively. I can build the iPad app in Debug configuration without issue, for the simulator and for a device. I get the following messages in...

Iphone XCode My Countdown no longer Animates

Hey Guys another question! Once again I would like to state that i am new to this and therefore my ability to understand the language Objective C and the Xcode application is limited! So Your help really and truly is appreciated greatly! I built a countdown app that shows when a radio station is going to be going live, the countdown wo...

Frustrating iPhone Build Error

Hello, I've been fighting this for a few hours now and I'm getting fed up. My project builds fine with a debug simulator build , release simulator build and a debug device build, but for some reason it won't build with a release device build. I have a static library containing my cocos2d code, and another static library containing a g...

Core Location Manager Prompt/Alert problem

I have come across an interesting problem which I am unable to debug. My application is using core location services and works fine in both the simulator and on the device once location services are enabled. I have tested it by manually toggling the permission in the settings pane. However for some reason when the user has not set any...

Xcode: Compile Error 71, can't find copystrings

CopyStringsFile ../StepMania.app/Contents/Resources/it.lproj/Localizable.strings it.lproj/Localizable.strings cd ~/OpenSource/GameDev/StepMania/PBProject setenv ICONV /usr/bin/iconv /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding utf-16 --outputencoding UTF-16 it.lproj/L...

How can I create a custom control using the iPhone SDK?

What are custom controls, and how do you actually create them using the iPhone SDK? ...

Rename Default.png to support iOS4 in Run Script

I have a project with several build targets. Each build target has its own default.png and previously it worked with changing the name of each of these to default.png in my run script. However with the release of iOS4 I have to modify my script in order to support the Retina Display. Is it possible to get the target device version (iOS3....

Why is the linker presenting an error about MPMoviePlayerController when building my application?

When I build, I'm receiving this error during the linking stage: ".objc_class_name_MPMoviePlayerController", referenced from: literal-pointer@__OBJC@__cls_refs@MPMoviePlayerController in MovieDemoViewController.o "_MPMoviePlayerPlaybackDidFinishNotification", referenced from: _MPMoviePlayerPlaybackDidFini...

Xcode Base SDK and Deployemnt Target

i've got the new version of Xcode which supports only 4.0 as base SDK! If i set the base SDK to 4.0 will my apps able to run on iphone devices with os 3.0? Is this have someting to do with deployment target? If i set the deployemnt target to 3.0, this ensures that any 3.0 device will be able to run my app ok? Because i dont have any 3.0 ...

Modifiying Nib file without Interface Builder

I was wondering if there is any way to directly manipulate the XIB/NIB files without the use of Interface Builder. I know its difficult but is there any way. Can you please tell me how can I do that or the internal structure or the documentations available on it? And will it be feasible or better in any other way. Regards, Vivek ...

extract channel titel from RSS feed using NSXMLParser

Hi, how can I extract the titel of a RSS channel while not getting in conflict with the title element of a news item? If an element was found: - (void)parser:(NSXMLParser *) parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict { ...