Created
November 23, 2009 21:16
-
-
Save st3fan/241383 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if GAME_USE_UNDOCUMENTED_API | |
id cameraControllerClass = objc_getClass("PLCameraController"); | |
if (cameraControllerClass != nil) { | |
id cameraController = [cameraControllerClass performSelector: @selector(sharedInstance)]; | |
if (cameraController != nil) { | |
UIImage* viewImage = [cameraController performSelector: @selector(_createPreviewImage)]; | |
if (viewImage != nil) { | |
[self processImage: viewImage]; | |
} | |
} | |
} | |
#else | |
[self takePicture]; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment