xcode

viewForZoomingInScrollView - How to detect zoom with items on top (Pass touch downwords)

Hello all, I have a viewForZoomingInScrollView with "hotspots" on top of it that allow you to click specific areas to get information on that area. The scrollview is allowing zooming of my image almost perfectly, except the small areas I have a hotspot, if I click on them, the "click" is not passed downwords, thus zoom/pinch is not det...

how do i change the size of UIImageView according to my animationImages as they are bigger than initial UIImage.

This is my code, i'm trying to drag and drop a card which will animate on touchesBegan, but the animationImages are larger than the initial card image before touches begin. How can i change the UIImageView to accomdate the animateImages sizes? cardAnimationArray is an array with 19 images xxx1.png, xxx2.png... which have various sizes...

Better bail behavior in face of bug, Mac OS development

When I'm writing a program for the iPhone, what the apple environment does when something goes wrong (from "unrecognized selector" to anything else), the app crashes and at the console, I have this meaningless stack debug spew that looks like this: 2009-12-19 11:57:37.843 ModelsProg[394:207] Stack: ( 30884955, 2431960329, 3...

GDB dies because of NSZombieEnabled

I was having some problems with memory (exc-bad-access) in Objective-C, XCode, for iPhone, so I searched a little bit and found about the (awesome) NSZombieEnabled. Everyone outhere is just explaining how cool this is ... but it doesn't work for me :/ I followed the following 'tutorial': http://www.cocoadev.com/index.pl?DebuggingAutorel...

UIImageView responds to partial touchesBegan code before the 3rd click. WHY??????

On simulation, after i load the UIView that contains 52 UIImageView; it takes at least 3 clicks before the animation begins. On the first 2 clicks, the touchesBegan is invoked. i know that because the NSLog(@"Just before for loop); was displayed on the console. However the console states that the cardAnimationArray is empty in the first ...

iPhone: Free developer certificate just for learning

Hi, i was wondering if i can get a iphone developer certificate for free? I just want to learn objective-c and iphone development. // No, the xCode iPhone Simulator don't have an accelerometer etc. g. ...

XCode 3.2.1 doesn't show contents of NSMutableArray when debugging?

I am struggling to understand why the following code doesn't show an array with any contents when I debug in XCode and yet the NSLog clearly displays contents, as does GDB using po? - (IBAction)action: (id)sender { NSMutableArray *btnTitles = [NSMutableArray arrayWithObject: @"Open in Safari"]; NSLog(@"%@",[btnTitles description]); // ...

Problem: AlertView must open subview but close it

I have a View that must open a subview if you click "Open Store" in a AlertView, but the subview is open, and after 1 sec closed again. Where is the problem?? This is my code: //my alertview UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"You must buy this item to use it!" deleg...

Determining value of NSUInteger

I'd like to view the value of an NSUInteger at any given time. I assign the value below: NSUInteger test = -1; Then try to view it in the debugger: (gdb) po test Cannot access memory at address 0xffffffff (gdb) p test $1 = 4294967295 Current language: auto; currently objective-c Far as I know, it is a value type. Where is -1? ...

iPhone Objective-C Basic Example Question (about Properties)

Sorry I couldn't give a more descriptive title. My question (after looking at the code below) is what statusText is. Is it an IBOutlet or a UILabel? How does "@property (retain,nonatomic) UILabel *statusText" work? Does that statement mean that statusText is a property??? Thanks for answering. If there are any questions, please feel fre...

How do I see the llvm intermidiate representation in Xcode

I'm compiling with clang-llvm 1.0 on Xcode 3.2.1 I want to see LLVM's intermidiate representation. How do I do this ? Thanks. ...

Xcode: target membership of frameworks?

Hi everyone, I have a question about the far right column of your Xcode project (image here) Apple's documentation tells me this about that column: Target membership. The column marked by the target icon indicates whether the file is included in the active target. If the checkbox next to a file is checked, then the active t...

How do I implement a web linked button that will open inside of my iphone application (not open a link in Safari?

I have an iphone sdk application and want to tweak it.. as I've had a great idea on how I want my interface to appear. I'm trying to create several buttons that will open a web page within my application but have failed to do so countless amounts of times now. (I don't want the button to open a link in safari, I already know how to do ...

Add a custom compiler to XCode 3.2

I have a working gcc 4.3.3 toolchain for an ARM Cortex-m3 and would like to integrate it into XCode. Is there a way to set up XCode (3.2) to use this gcc toolchain instead of the built-in GCC 4.2? What I've tried so far: I've added a modified copy of the GCC 4.2.xcplugin and changed the name, version and executable path. It shows up in...

Xcode compiles iPhone app for Debug not Distribution - Linking error "file not found"

Xcode compiles my iPhone app for Debug fine and the application works fine on my iPhone. But when I compile for Distribution I get the following Linking error: /Users/jtesta/Documents/WaterTaxi_prod_v1.1/build/WaterTaxi.app/WaterTaxi ld: file not found: collect2: ld returned 1 exit status It's not clear to me what file is not found....

iPhone: Random moving bubbles animation using coregraphics?

Hello Devs, I'm developing an app which will show 10-15 bubbles is moving around the screen randomly and will stay inside the screen. In fact they are buttons and when user will click on any-one it will show a random image. Now my problem is, how should i animate smoothly these bubbles as random moving buttons? i have tried with timer ...

x-code copying project to another computer problem

Hi there Im having problems copying a project over from one mac to another. The project compiles and runs fine after being copied, however xcode seems to have some duplicate of the same classes which seem to be invisible on the project browser on the left. For example if I jump to definition on a variable I get 2 suggestions pop up. Th...

trackPageView on Google Analytics for iPhone Not Working

I'm trying to get Google Analytics working on an iPhone application without much luck. I've followed all the instructions on their website (google/apis/analytics/docs/tracking/mobileAppsTracking.html) and studied their sample application (google/gaformobileapps/GoogleAnalyticsIphone_0.7.tar.gz). When I run my application and go to Go...

AppViewController and Delegate extension changed to .mm, #import "OpenFeint.h" gives error that OpenFeint requires Obj-C++

Hi, I downloaded OpenFeint version 2.3.1, unzipped and placed the OpenFeint folder inside right underneath my project in Xcode, and checked "recursively create groups if needed" (the instructions said to use groups and not a folder reference). I renamed my AppViewController and AppDelegate .m files to .mm. I followed the rest of the inst...

xcode - organize the code (straighten)?

is there a way to organize the the position of the code (straighten ...) automatically? ...