xcode

Is possible call animatesDrop in a MKAnnotationView rather than MKPinAnnotationView?? (IPHONE)

I, do you know that MKPinAnnotationView has a method "animatesDrop" to animate a pin annotation from the top to point on the map with a shadow?!..OK...is possible do this with a custom image?? thanks..:) ...

Copy files to iPhone System Folders

Hi there. I am developing for Jailbroken iPhone. I need to write(copy) a file to iPhone System Folders (/Library/LaunchDaemons) to which only ROOT has write access. How can i write a file to such folders through my Code. I know i can use NSFileManager's copyItemAtPath:toPath method to copy the file, but i cant write as i dont have permis...

Cant find Manage Object Class in xCode for iPhone

I am trying to generate classes for my .xcdatamodel entities, but am not given the Manage Object Class option when I click on an entity and select File>New File. I've looked under both the iPhone and Mac OS X catagories, but it is not listed anywhere. Here are the steps I am taking, I create a new project being sure to check the "Use ...

Xcode iPhone Build fails With Out of Memory

Sometimes the project compiles, and sometimes it fails with "Out of memory allocating 4072 bytes after a total of 0 bytes" If the project does compile, when it starts it immediately throws a bad access exception when attempting to access the first (allocated and retained) object, or, throws an error "unable to access memory address xxx...

how can I create unlimited UIImageViews with a Button press of which I can address any later?

Hello, I want create a UIImageView with a button press. I did this with: - (IBAction) addPicture:(id)sender { imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0, 45.0, 324, 52.0)]; imageView.image = [UIImage imageNamed:@"Picture.png"]; [self.view addSubview:imageView]; } I "created" this imageView in the .h, beca...

How can I detect which UIImageView was selected with a touch in touchesBegan?

Hello, The user can create a unlimited number of UIImageViews with a button press with this code: - (IBAction) addPicture:(id)sender { imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0.0, 45.0, 324, 52.0)]; imageView.tag = a; imageView.image = [UIImage imageNamed:@"Picture.png"]; a = a + 1; [self.view addS...

How to access ${SRCROOT} in a user script?

I have a user script that I would like to be able to access $SRCROOT in order to get a file that is part of the project but can't see to get it to work. If I create a simple user script as so: echo "${SRCROOT}" with the output set to replace selection nothing is output except the newline. Is there a way to access env vars from user sc...

My UIImageView doesn't get all the methods of my subclassed UIImageView

Hello, I created a subclass (called MyPicture) of the UIImageView with this methodes: - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { self.userInteractionEnabled = YES; } return self; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"-- I AM TOUCHED --"); }...

Problem with building applications for 10.4

When I try to build my app for 10.4, ppc, I get the following error: GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file MBM.m) What does this mean, and how can I stop it and build for 10.4? MBM.m: http://localhostr.com/files/bb385f/MBM.m Sorry for the brief explanation, but I have to go. Please help, HiGuy S ...

How to run my app even after iPhone screen locks?

Hi there. I want my app (LaunchDaemon) to keep running even if user locks the iPhone. My LaunchDaemon simply check a file and if some condition is true, it displays an Alert to the User. Its working great when iPhone is on Home Screen, but it is not working when user Locks the Screen. I want something Similar to Alarm app of iPhone whi...

Is changing the name of the .app file sufficient before submitting to Apple?

I tried submitting my application but was told that the file cannot contain any spaces. To fix this I simply renamed my .app file without the spaces, compressed it, and resubmitted. My question is was this sufficient, or do I need to rebuild my application without the spaces in the binary name? ...

How can I best deal with problems when initializing a model in an iphone app?

So assume I have a class that has an init method that does something like... grabs some data off the net in xml format and parses it to initialize some of its properties. My concern is how should I handle the case where the network is down or the xml data my object receives is bad? Normally in C i would use return values to indicate an...

Xcode Window Layout: How do I open all files in the same window?

Hello, I have problem with my Xcode window layout. The Group files on the left side is split and when I open the file it open's in a separate window. I want to open the files in same window attach to the group. Please let me know how to do this. Thank You. ...

Validating a user using the FriendFeed API & posting an entry.

Given the username & remotekey for a user, how do i validate the user using the FriendFeed API in xcode? How do i pass the username & remotekey, if at all. ...

ld: library not found for -ljpeg os x artoolkit

Hello i have been trying unsuccesfully to compile on Xcode the latest version of openvrml + artoolkit, i get: ld: library not found for -ljpeg How can i fix this? Thanks in advance. ...

How does one publish a static void NSString in a protocol?

I have a defined a custom error domain that I want to publish in a protocol. The domain is defined in the implementation file like this: //in the .m file static void *MyErrorDomain = (void *)@"MyErrorDomain"; The .h file implements a protocol, and I would like to publish MyErrorDomain there as well. I can't, however, figure out the co...

How do I change the table and cell backgrounds to custom images in Interface Builder and xcode?

How do I change the basic table to custom images in Interface Builder and xcode? Interface builder provides a boring white background for each cell. I want it to look more custom. I want to change that into something like this: http://tinypic.com/view.php?pic=51ufwg&s=6 Thank you. ...

Device XCode iPhone programming selection

I was wondering how to restrict an iPhone app only to run on an iPod Touch in XCode. Do I edit the .plist file that is in the project or can iTunes Connect handle that? Also what does the required device capability optional plist entry mean? ...

Why isn't my custom iPhone delegate working?

Hi all, I'm just trying to build a simple delegate, it compiles successfully but it doesn't seem to do anything right now. Please review my code below, both FirstViewContoller and SecondViewController have separate xib files, the SecondViewController has a button hooked up to the myMethod of course. I've been learning my way around obj...

dialing on iphone/ipod touch not working with documented procedures

I'm trying to set up an iphone app to the phone number of a various sports store using the tel:// url passing method- I am developing on an ipod touch- usually on the touch you see the error message "Unsupported URL - This URL wasn't loaded tel://99887766" when you try and dial a number. I cant get this message to appear on the simulato...