xcode

Duplicated project executable give "Data Formatters temporarily unavailable" error

I made a duplicate of my (working) executable without changing anything. Unfortunately, I am receiving the following error immediately and the emulator window doesn't appear: Data formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.) ...

How to update a uilabel text

Hi in my project i need to update a label according to the events performed.Suppose am interacting with the server then the label should display following text 1.Connecting to the server 2.Received response from the server etc help me i struck here ...

How to check for existence of a key in plist?

Hey there. I am trying to check for the existence of a key in a plist file in xcode. My plist file has this structure. Root (Dictionary) +- Parent1 (Dictionary) - Key1 (Boolean) - Key2 (Boolean) - Key3 (Boolean) - Key4 (Boolean) +- Parent2 (Dictionary) - Key1 (Boolean) - Key2 (Boolean) Now i need to check if Key2 e...

CCMenu animating

Hi, I'm trying to animate my CCMenu. CCSpriteFrameCache * cache = [CCSpriteFrameCache sharedSpriteFrameCache]; [cache addSpriteFramesWithFile:@"PlayButton.plist"]; CCAnimation * animation = [[CCAnimation alloc] initWithName:@"idle" delay:1/20.0]; for ( int i=1; i < 6; ++i ) { NSString * fname = [NSString strin...

iPhone: How do I convert a string with a currency symbol to a negative number ?

Say I have a string which is £23.56 or $23.56 how can I convert it into -23.56 ? I have this part NSMutableString *strAmount = [NSMutableString stringWithString:txtAmount.text]; [strAmount replaceCharactersInRange: [strAmount rangeOfString: strCurrencySymbol] withString:@""]; ...

Xcode 'CodeSign error: code signing is required'

I've been working on an iPhone project with iOS 4.0. I just downloaded Xcode 3.2.4 with iOS SDK 4.1 so that I can work with the updated iOS. Upon opening the project in the udpated Xcode, I found that the target read 'Base SDK Missing'. I fixed that by following the instructions here. Now when I try building targeting any version of iOS...

Is there a way to download Xcode on its own?

Hi! Is there a way to download Xcode on its own, without the iOS SDK? I have a very slow internet connection and this would take 3 or so hours to download, also I don't need the iOS SDK at all. Any help would be appreciated!! :) ...

Categories/Interfaces From Static Libs Not Autocompleting?

Thanks to this post and the now built-in static library template, I am able to put some of the pieces of my project elsewhere. Everything compiles with no warnings and runs fine. However, I used to get autocomplete for the categories in my import statement. This is no longer happening. How can I get autocomplete for categories in a stati...

How do I debug through system libraries on OS X?

I'm debugging a Cocoa app, which calls the system libraries. I get debug symbols for my own code, but not the system libraries, which stops me debugging any further. How can I get debug symbols for the system library. I'm using gdb, compiling against the 10.5 SDK on 10.6.4 (gcc 4.2). Here is the stack-trace I'd like to get symbols for:...

Keeping directory structure when creating frameworks in xcode

I'm trying to create a .framework in Xcode and have successfully done so, but as it turns out, Xcode flattens the directory structure of when copying headers in the Copy Headers build phase. I've tried adding the files as Folder References instead of the groups, but then it won't even recognize the header-files as header files! So, how ...

How to retrive Core Data SQL store from Developer's App on the Developer's iPhone

I need a copy of the store that is saved as Core Data sqlite file inside a test app installed on my device. I know how to get files out of the the simulator at path: ~/Library/Application Support/iPhone Simulator/[Version]/Applications/[AppID]/Documents ...but i need get the .sqlite file from the app on the device itself. ...

Open RSS feed link from uitableviewcell in safari instead of a new viewcontroller

I am using this http://imthi.com/blog/programming/iphone-rss-reader-application-with-source-code.php as a start for my rss reader in my app for loading news. I am trying to get it when you select a cell row it opens the link in safari instead of another viewcontroller. I am still learning how to develop for iPhone. This is what opens the...

IPhone App Build Successful But nothing shows

Hi Very new to Iphone development here, I have a project which is successfully building (which is a first for me :) It loads the simulator but it just closes as soon as it loads, how can I debug this? It appears the Interface Builder xib files are not loading, I've added a xib thats from a hello world project, (they have different proj...

Using TinyPic.com (or another site) to store user's images in my iPhone app.

I'm writing an iphone app and don't really have the resources to rent sql server space to store user's pictures. Is there another way? Could a site like TinyPic.com be used? What objective-c code could I use to send/store a picture there... and then later retrieve it as needed? ...

Problem playing audio file with AVAudioPlayer on iPhone 4 in iOS 4.1

I am using a simple bit of code to play an audio file: NSString *pathToMusicFile1 = [[NSBundle mainBundle] pathForResource:@"song" ofType:@"mp3"]; mySong1 = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:pathToMusicFile1] error:NULL]; NSLog(@"Song1 Loaded"); mySong1.numberOfLoops = -1; mySong1.volume = 1.0; [mySong1...

using Facebook iOS SDK 2, how do I like a page? - "Application must be on whitelist"

Hi there, How do I "like" a page using the new Facebook iOS SDK? (http://github.com/facebook/facebook-ios-sdk) I'm currently attempting to do it with: NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:[_facebook accessToken],@"access_token",nil]; [_facebook requestWithGraphPath:@"cocacola/likes" andParams...

code for facebook connectivity

Hello everyone, I am new to iphone development..i want the code for facebook connectivity with iphone..please if u can help..i have referred to the tutorial and video..but that dint helped me to find the code... thanks in advance ...

xCode Build Error for command-line script

Hi there, i am trying to compile the "compact-briefs"-target of Brief (http://github.com/capttaco/Briefs) with xCode. But every time i run build i get this error: target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphonesimulator' platform Whats wrong? ...

How to include OpenCV in Cocoa Application?

Hello, when I create an xCode project with the 'Command Line Tool' c++ stdc++ template, i am able to include and compile opencv headers and run some code. But i want to use OpenCV in a 'Cocoa Application' context. When created with that template, i got compile errors when I include the OpenCV headers in main.mm. (I already changed mai...

How to imbed PDF file in UIScrollView

I am new to xcode and I'm having some difficulty adding a PDF file to my UIScrollView. I already added pageControl and pageNumber as label. Any idea? ...