xcode

when cell gets selected in table view i should able to animate the cell before going to another view

CATransition *animation = [CATransition animation]; animation.type = @"suckEffect"; animation.duration = 1.0f; animation.delegate = self; animation.timingFunction = UIViewAnimationCurveEaseInOut; [[tableView cellForRowAtIndexPath:indexPath].layer addAnimation:animation forKey:@"transitionViewAnimat...

Building & Linking problems with XCode3.2.3, iPhone SDK 4.0 and FlurryLib

Architecutre in build settings is "Standard" Undefined symbols: "_OBJC_CLASS_$_FlurryAPI", referenced from: objc-class-ref-to-FlurryAPI in xxxxAppDelegate.o objc-class-ref-to-FlurryAPI in RegisterC.o objc-class-ref-to-FlurryAPI in LoginC.o objc-class-ref-to-FlurryAPI in FeedbackC.o objc-class-ref-to-Flurr...

XCode: Setting up multiple UITableView columns

I haven't found a good answer to this, and I must be dense, but... I'm trying to get a table view set up with an image and a label in each row. The image would be an indicator image (New, In Progress, Stopped, Finished, ect.) and the label would be a particular issue name. I can set up the table view normally with one column, but I ca...

How to change the default Xcode iphone simulator when testing

I don't know why but now the default iphone simulator launched when I build the project is "ipad", but I want it to use iphone 3g instead. Any way to set this preference? Thanks. ...

A tool to tell you what source files are needed in a C++ project?

I am porting a large, messy, 10 year old cold base in C++ from Metrowerks on OS X to XCode. There are so many files and all the other people that touched this over the years are gone. Nobody know what files are actually needed and which are just cruft. Is there any tool that I could run and have it produce a list of what files are ACTUA...

Is this unnecessary warning?

I have a following static method in one of my utility class + (UIImage *) getImage:(NSURL*) fromUrl { //Warning here NSData *urlData = [NSData dataWithContentsOfURL:fromUrl]; UIImage *image = [[[UIImage alloc] initWithData:urlData] autorelease]; return image; } For this method I'm receiving a bellow warning message war...

how to re add removed items from tool bar

i hav removed items from tool bar,but i want to re add it at particular time ... how to do it.. i dont have images for them.... NSMutableArray *itemsToReplaceOldOnes=[[NSMutableArray alloc] initWithArray:self.toolbar.items]; [itemsToReplaceOldOnes removeObjectAtIndex:2]; //remove UIBarButtonItems you want to remove [self.toolbar setItem...

Can I create a breakpoint in code in iOS, like `__asm{int 3}` on VC++, and continue execution after it's been hit?

I'm trying to put the equivalent of asm{int 3} (or similar) into my iPhone program. My goal is to have Xcode stop exactly on the offending line, without having to fiddle with the call stack (so _Debugger doesn't sound like it would do, not that I could find which framework it's in anyway...), and leave me able to resume execution (which ...

Why isn't iphone SDK NSTimer calling the function I told it to?

I'm writing an application that has a timer functionality built in. Unfortunately, I'm having problems with the NSTimer and I'm not sure what I'm doing wrong. Here is where I'm declaring the timer... if(!myTimer) { NSLog(@"Setting up the timer!"); myTimer=[NSTimer timerWithTimeInterval:1 ta...

Xcode build phases

Hey guys I was wondering if in an xcode build phase if it was possible to get the users root directory. Right now I am trying to copy it to "~/" but it says that doesn't exist Is there another way to get the user directory (or the users short name)? Or is there a system folder I can write to that won't run into permission problems? ...

Working with XCode breakpoints

I'm a CS student, so I'm still fairly new to programming. Breakpoints seemed pretty darn cool and useful to debugging, so I decided to play around with them a bit. Unfortunately, I don't really know how to work with them. I added a breakpoint to "Log breakpoint and arguments and auto-continue". The program reached the breakpoint, the deb...

Not able to build xAuthTwitterEngine Demo

Hi, Im trying to get the xAuthTwitterEngine Demo to run on Iphone simulator 3.0. I changed the Base SDK in Project settings to Iphone Device 3.0 and Iphone OS deployment Target to Iphone OS 3.0 But my build fails with 18 errors. I dont understand why. It has something to do with libOAuth.a and OAtoken. Can someone help me out here? Than...

how to access an object from another function

In viewDidLoad, an object is created. In some other function, I want to do something with the object, but outside of viewDidLoad, the object is not recognized. How can I access the object from other functions? ...

insertSubView: is not showing my views

I am stuck in a tutorial, trying to switch views with a toolbar. My code builds fine and I put some alerts in to check the toolbar was working, and it is. But my subviews I am inserting are just not showing up at all. Can anybody help please? Here is my main controller code.. MainViewController.h is #import @class FlavourPickerVie...

GKSession alloc / release / alloc = leaks and crashes

I've got an app that throws out the GKSession and makes a new one under various conditions (connection timeout, session fails, etc.). I'm getting memory leaks, though, and it sometimes crashes after a few loops through the reconnect. Here's my code: - (void) netConnect:(id) sender { NSLog(@"allocating GKSession"); currentSes...

I'm in an iPhone provisioning mess -- Insight needed

My app has been more or less ready to be submitted for a while now, but as usual, the overly complex provisioning nonsense that Apple forces developers to jump through is causing me an enormous amount of stress. Initially the problem I was receiving was Invalid Codesign. After trying every 'solution' i could find on the internet and fa...

Quickly switch between the project and debug windows in Xcode

When I run a program in the Simulator, the project window changes to the debug window automatically. This is what I want it to do. However, after running the simulation, I want to get back to the project window. I have to use my mouse to click on the tiny icon on the top left of the debug window in order to get to the project window agai...

Will my iphone 3gs app work ok on iphone 4?

So I'm currently making an app that supports both iphone 3gs and ipad (this is a universal binary app). What I'm wondering is how will iphone 4 users view my app, will they see it pixelated? will they not see it full screen since my iphone 3gs is on a smaller resolution? I don't have an iphone 4 yet but I'd rather just release this app...

Any alternaitve to the Google Map mapcurl?

Does anyone know how to mimic the map curl in the Google Map application without using the undocumented mapCurl and mapUncurl API? Ideally I would like to do the same thing as the Google Map application. If this is not possible, is there any way to 'slide' the map image up to show the options? ...

My vector sprite renders in different locations in simulator and device

I'm implementing a subclass of UIView that displays a gauge dial with a sprite for the indicator. It has angle property that I can vary to make the needle point to different angles. It works, but on the same values for the position of the needle make it show up in different locations on the phone and the simulator. It's an iPhone 4, s...