0

My app uses the camera, and I added the zoom function thanks to 3.1 API (cameraViewTransform most importantly). But I want my app to run also on 3.0 (without the zoom of course). The problem is that, I cannot compile the app in 3.0 due to this line which calls 3.1 properties:

CGAffineTransform initialTransform = photoPicker.cameraViewTransform;

If it was a method then I could have used performSelector or something like that. Changing it to initialTransform = [photoPicker cameraViewTransform] doesn't work neither. Is there any solution for this?

Esko
  • 29,022
  • 11
  • 55
  • 82
iamj4de
  • 780
  • 1
  • 6
  • 18

2 Answers2

1

I think this question is similar to yours, maybe the solution there might help you.

Community
  • 1
  • 1
Alfonso
  • 8,386
  • 1
  • 43
  • 63
  • I already found the deployment target setting from devforums, but thanks anyway, that was exactly what I was looking for ;-). – iamj4de Nov 12 '09 at 00:15
0

You want to set your deployment target to 3.0, but then compile with the 3.1 SDK, checking at runtime for the availability of the functionality using [photoPicker respondsToSelector:@selector(cameraViewTransform)] before calling it. There's a rant about deployment targets and SDKs at http://groups.google.com/group/iphonesdk/msg/1f47eae223a9fe90?dmode=source that might be helpful.

Josh Bleecher Snyder
  • 8,262
  • 3
  • 35
  • 37