iphone

Core Animation rotating a layer around arbitrary point

How can I rotate a layer using Core Animation around an arbitrary point? ( In my case a point that is not inside the layer I want to rotate ) I prefer doing this without changing the anchor point, because unless I get something wrong every time I change the anchor point it also changes the position of the layer. I tried something like ...

Is there a way I can capture my iPhone screen as a video?

I want to be able to capture my iPhone's screen as a video, but I'm not sure the best way to do this. Can anyone help guide me on how to best do this? ...

Are there any Open-source iPhone applications around?

I'm looking for open source iPhone applications. There are many sample applications around, but not many "complete" applications. Any ideas? ...

Logging to a file on the iPhone

What would be the best way to write log statements to a file or database in an iPhone application? Ideally, NSLog() output could be redirected to a file using freopen(), but I've seen several reports that it doesn't work. Does anyone have this going already or have any ideas how this might best be done? Thanks! ...

Is there a performance hit for using UIImage in CALayer?

I'm using a whole bunch of CALayers, creating a tile-based image not unlike GoogleMaps (different versions of the same image with more/less detail). The code I'm using to do this is: UIImage* image = [self loadImage:obj.fileName zoomLevel:obj.zoomLevel]; [CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableAct...

iPhone SDK: Assertion failure in -[UILabel setFont:]

I have an iPhone app that compiles and runs fine in the Simulator on my laptop. Now, I try to build and run the same code in the Simulator on an iMac, and it starts up and lets me click a button, but then I get an assertion failure. Here is what is in the console: *** Assertion failure in -[UILabel setFont:], /SourceCache/UIKit/UIKit-...

How to access SOAP services from iPhone

Hi, I'm planning to develop an app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services, a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. So if I do want t...

Rounded Corners on UIImage

I'm trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I've got code that generally work, but it occasionally crashes inside of the UIImage drawing routines with an EXEC_BAD_ACCESS - KERN_INVALID_ADDRESS. I thought this might be related to the cropping question I asked a few weeks...

UIImageView not displaying in UITableView header

My problem is that I can't seem to get the image from my bundle to display properly. This method is in the view controller that controls the tableview. headerView is loaded with the tableview in the .nib file and contains a few UILabels (not shown) that load just fine. Any ideas? - (void)viewDidLoad { [super viewDidLoad]; [[sel...

iphone crash reporter

Is it possible to access the crash log over the application? The last.fm client showed me today a "we found a crash log" altert with the option to send it, so I think it must be possible. ...

How do you setup Eclipse to work on iPhone development (instead of Xcode)?

Although I've been getting more and more familiar with Xcode while developing for the iPhone, there are times I just wished I had a better IDE, something like Eclipse. So I was wondering does anyone know how to migrate iPhone projects to Eclipse, and if it's worth it? ...

How would you pass data from a child view to a parent view using the iPhone SDK?

Which method would you recommend to pass data from a child view back to it's parent view? ...

How much does it cost to develop an iPhone application?

How much can a developer charge for an iPhone app like Twitterrific? I want to know this because I need such an application with the same functionality for a new community website. I can do Ruby but have no experience with Objective-C. So it would be interesting for me if I should start reading books about iPhone programming or outsourc...

Why does my OpenGL ES iPhone game flicker when I first turn on the phone?

I made a simple game for the iPhone using OpenGL ES. Everything works fine except for this problem: I turn the phone completely off, then back on, then launch my app and I get this wierd flickering! Every other frame is correct... the incorrect frames are just the same frame over and over again. If I quit the app, launch it again eve...

Hidden features of Objective-C

Objective-C is getting wider use due to its use by Apple for Mac OS X and iPhone development. What are some of your favourite "hidden" features of the Objective-C language? One feature per answer. Give an example and short description of the feature, not just a link to documentation. Label the feature using a title as the first line. ...

Display a loading icon while a network resource is being downloaded

I'm trying to display a loading icon while my iPhone app downloads a network resource, but I can't figure out how to make it show up correctly. I searched around and found some details on the UIActivityViewer class, but the available example source code didn't work, and the documentation is kind of terse. Could someone provide a simple...

Best way to transition between two images in a UIImageView

I implemented a pretty simple picture viewer that will allow the user to browse through a collection of images. They are loaded from the internet, and displayed on the device through a UIImageView object. Something like this: UIImage *image = [[UIImage alloc] initWithData:imageData]; [img setImage:image]; imageData is an instance of N...

Continuous Integration for Xcode projects?

After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed specifically for Xcode, but one guy has had success using Cruise Control combined with the xcodebuild...

Set the location in iPhone Simulator

Does anyone know how to set the location (as it's picked up in CoreLocation services) in the iPhone Simulator? I've been browsing online docs all day and I can't find an answer. Speak up! ...

How do you make an UIPickerView component wrap around ?

I would like to show a set of consecutive numbers in a UIPickerView component but have it wrap around like the seconds component of the Clock->Timer application. The only behavior I can enable looks like the hours component of the Timer application, where you can scroll in only one direction. ...