hi,
SUPER HARD QUESTION
Here is my projet:
I use 3000 jpegs in an iPhone Project. In a normal situation, the 3000 files are loaded in the 'NSBundle' (encapsulated with the App) and then load on the iPhone. The problem is the app is around 500 Mo.
So i'd like to copy the images in a different directory ('Documents' for example) t...
I am trying to pass a managedObject from a mapView with multiple annotation to a mapDetailView with only one annotation of the managedObject passed. This works great in a tableView to mapDetaiView. Any help would be appreciated. My code ...
- (void)viewDidLoad {
[super viewDidLoad];
if (self.managedObjectContext == nil) {
self.man...
Hi, this is a cross-post of this question @ the ADC forum.
Here's the messages I'm getting:
/Developer/Tools/RunPlatformUnitTests.include:273: note: Running tests for architecture 'x86_64' (GC OFF)
objc9727: GC: forcing GC OFF because OBJC_DISABLE_GC is set
2010-07-14 16:07:42.893 TestXMLDataApp9727:903 Cannot find executable for CFBu...
I am using this OAuth lib: http://github.com/jdg/oauthconsumer
When adding it to my project, it causes over 2000 build errors. These errors are all under the App_Preficx.pch file in the Build Results window.
If you actually click on the errors, they are actually contained in every Foundation Header. I won't list them all, but here ar...
Hi all,
I started using git with an xcode project and have recently discovered that I can use .gitignore and .gitattributes files to ignore the noise from the compiler and system. Now that I have the .gitignore and .gitattributes files in place, how can I "apply" the new ignore rules and get rid of the crud from version control?
My .g...
Hi,
I was going through the Hello World tutorial for iPhone App. I recently bought a Macbook and have installed Xcode 3.2.3. The tutorial says that I should double click on MainWindow.xib and wait for few seconds to see an Interface builder getting opened. But nothing like that is happening in my macbook. Is there an alternate way to br...
I am working on a project with several custom classes. I have a CardModel (NSObject) that has some integer properties to hold data, and a Deck (NSObject) that has an array to hold a bunch of CardModels and then a CardView (UIView) that has a CardModel as a property that I make when I select a CardModel from a Deck. And then I've got a ...
Hi,
I am trying to test some model classes that I've written with SenTest in XCode. I have dragged the model header and implementation files into the Compile Sources group within my LogicTests target, and my tests pass. The problem though is that I'm getting a ton of compiler warnings about no rule to process file such as:
warning: n...
I've got an iPhone app that uses push notifications, which means that I can't use a wildcard in the bundle identifier of my provisioning profile. This means that I can't use a team provisioning profile, which makes things difficult when several developers are committing code to Subversion.
When I commit my code, I also commit my individ...
I have created 3 files for the app icon: Icon.png, Icon-72.png, and [email protected]. [email protected] shows up fine on the actual iPhone 4. The simulator, however, only uses the 57px version. With the iPad neither the simulator nor the iPad itself uses the Icon-72.png file. Only the 57px version.
Help! :)
...
My app used to use the Settings.bundle to load settings from the user, but then I changed it to have the settings in the application. I have all the code completed, and it works. The next step is to remove any of the code for the settings.bundle.
I have removed the code, and the settings.bundle itself, but when I compile, I still get th...
Hi,
I'm debugging a project for iOS 4.0 (simulator) in XCode 3.2.3, and all of a sudden the debugger just stopped working on me. It will hit the first breakpoint and freeze. It will not respond to single stepping, continuing, pausing, etc.
I know I'm not the first person to complain about the XCode debugger, so does anyone have any sor...
I have made some progress and am editing the question to be current again. My big issue now is that the grouped table view will load, but shows all of everything in each section with each row. Also, my UIAlertView is returning all references to my plist (null). How would I fix this because the references to the plist are killing me. Any ...
I'd like to have a tableview header that can remain at the top of the table, even when the user has scrolled down. I tried using a section header for this, but my table has multiple sections so I can't guarantee that one particular header will be at the top.
What should I do?
...
Hi, everyone,
I want to ask an stupid question about the Xcode. I use the .xib to add a Label to my interface and I type something in the Label. For example, Hello World. How can I set the 2 words or 3 words in different lines?
Example:
Hello World // I don't want this
Hello // this is correct
World
Thank you very much.
...
My application builds its user interface and a core data model through code (no .xib .nib or .xcdatamodel files).
I'm having trouble finding documentation on how to bind core data entity attributes (in an NSManagedObject) with the object properties of a UIView or UIViewControler such that the two are kept synchronized with each other.
...
If I add a macro "FOO=bar" under GCC_PREPROCESSOR_DEFINITIONS (or Preprocessor Macros if you use XCode"), what would be the best way to access the value of "FOO"?
Currently, I use the clumsy:
#define MACRO_NAME(f) #f
#define MACRO_VALUE(f) MACRO_NAME(f)
#ifdef FOO
NSLog(@"%s", MACRO_VALUE(FOO));
#else
...
I am working with creating a simple iPhone app to show a map and some labels, however the MKMapView likes being centered when I put it in the interface builder.
I am very new to this, so i apologize for my ignorance.
I cannot seem to find a way to move the MKMapView from its centered position. I can scale the edges, however the scalin...
Hi all,
I want to ask about your practices to keep your third-party libraries up-to-date easily.
In my iPhone project, I use quite a lot third-party libs (like TouchXML, JSON, RegexKit, YAJL, MGTwitterEngine...). Most of them is stored in GitHub and their version, especially MGTwitterEngine, change quite rapidly (because of adding new f...
how to draw a circle using CGContextAddArc with different sroke color and fill color?
...