xcode

Glitchy transition while pushing and popping using UINavigationController

I am using UINavController to push and pop between viewcontrollers. However when I push and pop the animation is not smooth. The navbar backbutton transition happens first and then the view and its title. This lapse in timing makes it look as if a block appears between two views. I am not doing anything fancy and I commented out code fro...

xcode build configurations search paths

my iphone app builds fine in debug configuration, but when i change it to release, i get hundreds of errors, starting with "CoreServices/CoreServices.h: No such file or directory" in AudioFileComponent.h - part of the AudioToolbox framework. i can't find where in the project/build settings is responsible for this.. thanks for any help. ...

iPhone button with non-rectangle shape?

How can I get a non-rectangular shaped button? For example I do have a PNG image with alpha transparency. How can I set the shape of a button to this image without the transparent color. ...

How/where to release global variables in objective c? -iphone

I have gone through the following question. http://stackoverflow.com/questions/1528696/objective-c-where-do-you-dealloc-global-static-variables But the question is related on static variables. It has something different situation then mine. I have following code in application. //.h file #import "cocos2d.h" #import "something.h" #imp...

Aquatic Prime on 10.6?

Hello, I have 2 applications that I use with Aquatic Prime. One is an application just with the Aquatic Prime framework, and the other is an application that I've been working on that has been incorporated with the Aquatic Prime framework. The first application I mentioned before has its SDK set to 10.5 with the architecture to 32-bit. ...

Mac OS X: Best way to implement a card game GUI

Hi, I've started programming on Mac OS X in Objective-C and decided to create a little card game. At first I create a command line version. If everything works fine I would like to implement a GUI: Nothing big, just a green window with cards which can be dragged and dropped. Since I don't have any idea about how to do this: What can I ...

Replacing image in sprite - cocos2d game development of iphone

I want to change the sprite image. Say for example. mainSprite=[Sprite spriteWithFile:@"redFile.png"]; [self addChild:mainSprite]; Here, Sprite is already added to a layer. I have mainSprite (pointer) which can access it. If I change [mainSprite setOpacity:150]; it works perfectly. But Here I want to change the sprite image inst...

How SHOULD you make (and use) static libraries on the iPhone

AFAICS, any serious iPhone developer must make and use static libs on a regular basis, or else condemn themselves to buggy, hard-to-maintain, unwieldy projects. But Apple refuses to provide any official docs on the process (just circular references: "dont do static, use dynamic! ... we don't allow dynamic on iPhone, use static!") I have...

How do I use XCode performance tools with a static library project?

I have two projects - one with a static library target and a unit test target - one with an application target that is dependent on the static library and it's own unit test target In the static library project, I can only do a 'Build' or 'Build and Analyze'. If I build the unit test target, the tests are run, but there does not seem t...

how to access the image captured using takePicture

With takePicture, the camera captures an image (click), however I it does not call the imagePickerController:didFinishPickingMediaWithInfo: method. So how do we access the image? ...

How can I add the SDK 2.2.1 documentation to Xcode 3.2?

I just upgraded to snow leopard and updated Xcode to the 3.2. I have the iPhone 3.1 library documentation, but I don't see anything for 2.2.1 anywhere. In the previous Xcode there was the possibility of subscribing to different documentation, but I don't see it anymore. Is it possible to install it? ...

how to save slidervalue and label value in nsuserdefaults or any other efficient way?

i have a view with one slider and a label.i am showing a countdown on label and setting time on label using slider.now suppose i have started the timer so the label's value is decreasing every minute and slider's value is also decreasing.now i want that if i close my app and then reopen the timer should be already running+label's value i...

Is there a trick to save time building in Xcode when there are thousands of images?

For testing the capabilities of an animation class I have created 5000 fullscreen images with 100kb size each. I added just 1000 of them to my project and Xcode is already building for 30 minutes now. The next time it would be nice if Xcode just uses the already alpha-premultiplied images from a previous build instead of stupidedly rebui...

How to add Quartz Core Framework in new Xcode 3.2?

Since new Xcode 3.2 I find it very hard to add Quartz Core Framework. It does not appear in the list. Previously I just typed in Quartz and some QuartzCore.framework thing popped up. Finder is so bad it does not find any *.framework file on the mac so now the big question is: Where is it hidden? ...

how to stop core animation?

i am animating a button using core animation now on a certain condition i want to stop that animation how do i stop the animation? here is the method to animate the button -(void)animateButton:(UIButton *)btnName { CABasicAnimation *pulseAnimation = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; pulseAnimation.duration = ....

how to get Route directions between two points on a map to draw driving directions?

is there a way to use core location or google or some other api to provide two points on the map and get the resulting set of latitude/longitude pairs for the route? i have seen in this tutorial Drawing polyines or routes on a MKMapView that how to draw driving direction using core graphics...but in the sample code it has route.csv whic...

Is there an easier way to add properties to a class in XCode?

I'm getting a bit more seasoned with my iPhone development but I still don't know everything. One thing that bugs the hell out of me is having to add properties to a class, because there are four steps involved: Add a class member to the Header file Add the property definition to the Header file Add a synthesize declaration to the impl...

Interface Builder and Xcode integration not working

After having installed the iPhone SDK 3.1.2, Interface Builder is not in sync with Xcode anymore. The light indicator at the bottom of the XIB window is grey. IB doesn't see any files from the Xcode project. Xcode is always open when I start IB. I tried rebooting. No luck. I tried removing the preferences files for Xcode/IB. No luc...

Control iPhone Services using Low--Level API or PrivateFrameworks in Xcode

I am trying to make put together a simple application to control the phone services such as WiFi, Bluetooth, 3G, etc. using PrivateFrameworks or low-level API's. I am able to build the device and SSH it to my device without a dev account, and I have the include-2.1.SDK headers, but I am looking or some help in adding these PrivateFramew...

Loading tableview from another class in iPhone

I have a RootViewController class and a UserSettingsController class. I have defined the UITableView methods (numberOfRowsInSection, cellForRowAtIndexPath) in the RootViewController class. I want to reload the table view defined in the RootViewController class from the UserSettingsController class. How can I get control of the tableVie...