Tutorial for saving an array of custom objects
Is there a tutorial for saving and restoring an array of custom objects? ...
Is there a tutorial for saving and restoring an array of custom objects? ...
Why doesn't this code work when compiling an ApplicationTests unit test bundle? #if TARGET_OS_IPHONE #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #else #import <Cocoa/Cocoa.h> #endif One of my dependencies has this check and compiles just fine in my main application bundles, but it tries to load <Cocoa/Cocoa.h> w...
once in a while I run across a problem with provisioning a device with a dev version of an app . The error message is usually "a valid provisioning profile for this executable was not found". I have followed all the Apple instructions: I have a valid dev certificate, the developer provisioning profile includes the device ID of the devi...
Consider the following code [coder encodeObject: properties forKey:@"properties"]; Are there any restrictions on what kind of object is passed as an argument to encodeObject? Can it be an object from a custom class? ...
Hey everyone, I was wondering if someone could point me in the right direction to creating a function in my openAL singleton class that returns the current time of the sound. Any Ideas? Thanks! (Current time 'while the sound is playing') ...
Have been searching for experiences on TDD with Objective-C and iOS development. Previous post about "string calculator"-kata in Objective-C was useful (thanks). But it would be nice to learn even more fluent iPhone-TDD. Do you have some experience of how to use UISpec (based on Rspec), iCuke (based on cucumber) or similar tools? An...
Is it possible to write an obj-C code with any text editor and then upload it to Mac server to compile it using Xcode?? I know that it is possible to compile your project using Xcode without open it something like use some command lines, but I am not sure is it possible to make it a server and then upload any obj-c code! ...
Xcode shows you a grayed-out version of what it will complete to and if you hit tab or right-arrow, it will complete. It's pretty sweet. Is this possible in TextMate? Thanks! Matt ...
Hey guys, I made a custom Static Library that I use in my iPhone project. Everything works great except for when I use an NSKeyedUnarchiver to unarchive some data. It throws an exception when I try and use it in the library. I tried copying the classes of my static library into my project to see if that would work and it works fine but t...
I want to use a Docset i have created using Doxygen in my iPad app in a tableview, and navigate through the directories. then display the file i click. How would i go about navigating the Docset? i can unzip it, then navigate the directories in that manner, though i'm certain there must be a way of using the file as is and then being ab...
How do I best position an image (UIImageView) within a UIScrollView programmatically? I have the x and y coordinates (CGPoint C = centerCoordinate) of the image position that needs to be centered horizontally and vertically in the UIScrollView. ===Image============================================= | ...
I am building a game using cocos2d-iphone 0.99.4 and XCode 3.2.4. When I try and and "build and analyze" the analyzer simply skips every file with various messages. My files are all skipped for the following reason: '/var/folders/kn/kn3feAZJGICNBebbEUEgS++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/QSwitch_Prefix-efddpu...
Hi! I'm new to this so please excuse my presumably simple questions. Hope you'll be able to help me out quite easily! I'm making an app that uses 4 variables to calculate the amount of water recommended for the user. The problem with this switch statement is that no matter what value i set age to, it always does the last case. Why is thi...
Hi Why is my it skipping the first statement and only displaying the kg message (else statement) regardless of what my switch is set to? Should I be using a function other than toggleSwitchWeight? Thanks so much for your help guys! :D -(IBAction) WswitchValueChanged{ if (toggleSwitchWeight.on) { weightpounds = [weight...
In the middle of developing an app, I was asked to switch to a different developer account, which resulted in adding a new app ID and creating new provisioning profiles for adhocs on the new account, as well as updating the XCode settings to sign with the new identity. The problem is that somewhere, somehow XCode is keeping the old prov...
Hey all, I've created a loading/splash screen that loads at the beginning of my app, just simply showing the company name. It works great on the simulator, but for some reason I just get a black screen when I load the game on my itouch. Any Ideas? I use the sleep(5); method of creating a loading screen. ...
Is it possible to send text from an xcode input and have the data sent through a php function? ...
Hey i am trying to compare the date on which the user opens the app to the date it is currently. (basically, how long they've had the app in days) Here is the code: - (NSInteger) daysAfterDate: (NSDate *) aDate { NSTimeInterval ti = [self timeIntervalSinceDate:aDate]; //#1 return (NSInteger) (ti / D_DAY); //#2 } //#3 -(void)l...
I used ot have the 3.x then i forgot to update to 4.0 then yesterday i installed the 4.1 sdk, so now i have the 4.0 missing... how ca i test if the app works on iphone 4.0, o better , how can i be sure it works on iphone with older sdk? ...
I have multiple versions of Xcode installed. I can build my project against older iOS versions by launching old Xcode. But how could I use newer Xcode versions to build against older iOS versions? In the project settings there's a Base SDK dropdown. It only offers the very latest iOS version for selection. Under /Developer/Platforms/ t...