iphone

What's the best way of learning iPhone programming when coming from Java?

I've started to read all available apple docs on this topic. A fast overview gave me a number of about 8.000 (eight thousand) DIN A4 PDF pages. About 10% of the content is almost equal for my feeling. After reading for 2 weeks now, I figured out that I would forget fast what I have been reading a week ago. Unless I start to do something ...

which features do you look forward to the most in iPhone SDK 3?

Which of the new features are you looking forward to the most in iPhone SDK 3.0? Is it one of the main advertised six new things, or something smaller? Something in the "1,000 new APIs", perhaps? ...

iPhone application is crashing and not leaving behind a .crash log file

Hi folks, I'm working on catching a seriously insidious bug that's happening in my code. The problem is, the bug is completely random and can happen either 9 minutes into the application's runtime or 30 minutes. I've gone ahead and added the fabulous PLCrashReporter to my project (http://code.google.com/p/plcrashreporter) and that works...

How to make swoosh graphic/sound effect?

I have a UIImageView that can be dragged around with a finger. It is sized to an image in it, such as a ball or square. If the user accelerates very quicker, I'd like to trail the object with a blur of itself to give the appearance of going fast. Like what happens with warp speed. I also have a swoosh sound. I'd like the sound to l...

Soap xml for Paypal API SetMobileCheckout (rolling my own objective-c request)

I have the generic structure here: <?xml version=”1.0” encoding=”UTF-8”?> <SOAP-ENV:Envelope xmlns:xsi= ” http://www.w3.org/2001/XMLSchema-instance” xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/” xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” S...

What is the most practical Solution to Data Management using SQLite on the iPhone?

I'm developing an iPhone application and am new to Objective-C as well as SQLite. That being said, I have been struggling w/ designing a practical data management solution that is worthy of existing. Any help would be greatly appreciated. Here's the deal: The majority of the data my application interacts with is stored in five tables ...

How can I reproduce the flick-to-scroll behavior of the iPhone UIScrollView in my own custom view?

I would like to reproduce UIScrollView's flick-to-scroll behavior, but I don't want to use (or can't use) that class. What can I do? ...

Languages for iPhone development

What languages can be used to develop for the iPhone? I know, I know: canonically speaking, Objective-C is the one and only language can be used to develop for the iPhone. But I'm appealing to the creative hackers out there. Is there anything - no matter how hacky - other than Objective-C which can be used to develop for the iPhone? (ot...

One Xcode project, Two targets, Two apps, Two Default.png files?

I'm working on an iPhone app that will ship with a "Lite" and "Pro" version. To accomplish this I'm using two targets with the same project and codebase. I would like to use a different "loading" Default.png image for the two versions of the app, but I'm not sure how to do this short of manually overwriting the file before building eac...

Easiest way to determine whether iPhone internet connection is available?

I am looking to determine whether an internet connection is available on the iPhone. It doesn't matter for the app whether it's wifi or EDGE or whatever. Using the code from the SeismicXML example doesn't seem to work and the Reachability example code from Apple seems like overkill for the app... Is there a quick and easy way to deter...

What happens when dragging off screen?

I have an object that can be dragged around. Once the user's finger goes off screen and comes back, I loose the ability to drag the object. If the user then does another touch and drag, everything is fine. How can I get notified once the user's finger drags back onto the screen? Since touchesBegan doesn't fire, I don't get any noti...

Neighbour cells (ID & Rx level) & Apple developer program

Hello! I'm a student in telecommuncations and I have to developp a program for a mobile phone (the platform is still to decide) that gathers informations about the active cell and the neighbour cells. I've been searching for a while now and I haven't found any public solution fitting my needs. I was wondering if the apple developer pr...

Why do I have to clean up memory if I have an IBOutlet with "retain", but not when I have one with "assign"?

Example: @property (..., assign) there, I don't do any cleanup in the dealloc Method. But when I have an @property (..., retain) then I would do so. I have that from somewhere in the internet. Don't remember the site. Well, I know that the retain-keyword in the compiler directive would make a retain count +1, but actually I think...

If my property has no setter (readonly), is it true that UIKit retains the value if it's not NSNumber or NSValue?

I want to figure out in which cases I need to care about memory management when it comes to properties. I wrote down something from a site I don't remember anymore, where they said that if a property has any value other than NSNumber or NSValue, and if it has no setter, then UIKit would autorelease the old value and retain the new one. A...

What happens exactly, when I set an property to nil in the dealloc method?

Example -(void)dealloc { self.myOutletProperty = nil; [super dealloc]; } I guess that a sort-of virtual setter will be called. But what exactly happens here? Why nil? ...

How do I find out if I need to retain or assign an property?

Are there any good rules to learn when I should use retain, and when assign? ...

Can I use a mono library from Objective-C (on the iPhone)?

Hi I am investigating a port of an app to the iPhone. My existing business logic is C# in a class library dll. It does some processing as well as sommunicating with web sites. I understand that Objective-C is the best thing to develop with on the iPhone and I'm prepared to dive in, but if possible I want to avoid re-writing the existin...

Resizing an image with stretchableImageWithLeftCapWidth

I'm trying to resize an image using stretchableImageWithLeftCapWidth: it works on the simulator, but on the device, vertical green bars appears. I've tried to use imageNamed, imageWithContentOfFile and imageWithData lo load the image, it doesnt change. UIImage *bottomImage = [[UIImage imageWithData: [NSData dataWithContentsOfFile: [...

iPhone Memory Management with UIImage

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage: (UIImage *)image editingInfo:(NSDictionary *)editingInfo { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [self.pickerTrigger setImage:image]; [self.button setTitle:@" " forState:UIControlStateNormal]; [self.button setTitle:@" " forState:...

How do you detect iPhone v. iPhone 3G using Obj C

There is a model property of the device, but it doesn't distinguish between iPhone and iPhone 3G. Is there a better way? ...