I am currently developing an application and I need to be able when pressing a button to open the camera and take a snapshot that I will attach to a .json file and send to my server.
I am searching on google and StackOverflow for the last couple of hours but all the tutorials seem very old (08'-09') or not match my needs. I know that all the work is done with UIImagePickerController
class but I would like to have a working example. Does anyone know a good tutorial to get started for something like this?
相关问题
- CALayer - backgroundColor flipped?
- What uses more memory in c++? An 2 ints or 2 funct
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Using if let syntax in switch statement
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Enum with associated value conforming to CaseItera
You should check this article from AppCoda Build a Simple iPhone Camera App, very clear and simple :)
Take photo using the native iOS Camera app
Read the captured photo (you have to implement
UIImagePickerControllerDelegate
Try this. It's very simple, you just need to set delegate for a controller and call it. Google will help you, there are plenty of resources and working examples. For instance, sample code from Apple
Well if you google something like:
Will be a bit hard. So, use this tutorial for the
UIImagePickerController
. By the way, the term for the search was:I came across this code AQPhotoPicker. This is quite easy to use with only one call, you will get photo from camera or photoPicker