Tag: objective c

XCode/Simulator: How to run older iOS version?

I’m thinking of upgrading to iOS SDK 4.2. But what I’m wondering is if I’ll still be able to run the simulator as iOS 3.2. This is because I’m creating iAds for iPad but I still want to check if my program will run with iOS 3.2. Note: I have seen a similar post to […]

how to hide status bar when splash screen appears in iphone?

Is there a way to hide the status bar when showing splash screen in iphone? and show again in application?

Difference between Xcode version (CFBundleShortVersionString) and build (CFBundleVersion)

In Xcode 4, I see this for my target summary: The “Version” input corresponds to CFBundleShortVersionString in the info.plist file, and the “Build” input corresponds to CFBundleVersion. What’s the difference between these two? I see a lot of people on the internet wanting to put the same value in for both, and my suspicion is […]

XCode dylib looking in /usr/lib

I created a dylib in XCode. I set the installtion directory to @rpath. Then I created a test project in which I am using this dylib. When I run it, I get dyld error:library not loaded….Reason: no image found. BUT….if I put that dylib in/usr/lib folder, then it works like a charm. So my question […]

XCode – #include <map> in ml.hpp : No such file or directory

I’m trying to compile a C++ code (OpenCV) and I’m going to the end. I just have a few “No such file or directory” compile error into XCode 4 on those lines : #include <map> #include <string> #include <iostream> What may I include to make it find the “files” ? I don’t see. I use […]

Xcode Debugger: What does the blue italic text mean?

Here’s a screenshot: Clearly it indicates that the x coordinate of my struct differs from the y coordinate, however their values are the same. How do they differ? While we’re at it… This one should be easier… What does the capital L icon indicate?

Adding a getter makes using an underscore incorrect syntax

I have a class with the following header: #import <Foundation/Foundation.h> @interface CustomClass : NSObject @property (strong, nonatomic) NSString *foo; @end With the following implementation that does not show any errors: #import “CustomClass.h” @implementation CustomClass – (void) setFoo:(NSString *)foo { _foo = foo; } @end Being a complete beginner to Objective-C, I am baffled when I […]

xCode Dynamically create ViewControllers

I want to be able to dynamically create ViewControllers based on a JSON file. What I mean is, there will be a json that will dictate how many ViewControllers the user needs. I.e say I have a json file that lays out 5 ViewControllers, I want to be able to dynamically create these ViewControllers and […]

frame by frame animation

i wanna knw an alternate to this animation code.. -(void)movetree{ //[tree1 release]; treeMove = YES; tree1.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@”moving trees1.png”], [UIImage imageNamed:@”moving trees2.png”], [UIImage imageNamed:@”moving trees3.png”], [UIImage imageNamed:@”moving trees4.png”], [UIImage imageNamed:@”moving trees5.png”], [UIImage imageNamed:@”moving trees6.png”], [UIImage imageNamed:@”moving trees7.png”], [UIImage imageNamed:@”moving trees8.png”], [UIImage imageNamed:@”moving trees9.png”], [UIImage imageNamed:@”moving trees10.png”], [UIImage imageNamed:@”moving trees11.png”], [UIImage imageNamed:@”moving trees12.png”], […]

passing data between views

So i’m trying to pass data between two views (first view is tableViewController,when cell is pressed data is send to second view,second view got imageView, when data is send image is shown) using this tutorial iphonedevsdk. I’m using same theAppDataObject method in my views: – (AppDataObject*) theAppDataObject { id<AppDelegateProtocol> theDelegate = (id<AppDelegateProtocol>) [UIApplication sharedApplication].delegate; AppDataObject* […]