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 ...
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?
...
I'm looking for open source iPhone applications. There are many sample applications around, but not many "complete" applications. Any ideas?
...
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!
...
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...
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-...
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...
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...
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...
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.
...
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?
...
Which method would you recommend to pass data from a child view back to it's parent view?
...
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...
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...
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.
...
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...
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...
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...
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!
...
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.
...