taking photos in swift and add in UITableViewController

Discussion in 'iOS Programming' started by Pelop17, Mar 15, 2015.

  1. Pelop17 macrumors newbie

    Joined:
    Jan 3, 2015
    #1
    After searching the forum over and over again, I havent found my aswer What I bassicly need is the code on how to take a photo and store it in the UITableView , I already search the internet and Havent found an answer what I found : Setting images in UITableViewCell in Swift

    What I made:

    I made a core data project in swift which scans qr and barcode code and finds what your are looking for. I also made a database using coredata which you add a product ( name / quantity / year of buying)

    What I need:

    To take photos of the receit and the actual product and store it inside the UITableViewController so when you press it displays what I said.

    To put a search toolbar -( how to do it)? and if possible put tags

    Thats my whole project Everything I need hould be written in swift ( I already made the Qr Scanner ) but I dont know how to take photo and store in tableview forever

    Any help will be apreciated

    Thanks
    :apple:
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    You don't really store data in a UITableViewController; you store it in a data source. The UITableViewController then uses that data source to populate the table view.

    Anyways, I would look at UIImagePickerController for taking pictures and I would think you want to store your images and tags alongside the rest of your data in your Core Data database.
     
  3. Pelop17 thread starter macrumors newbie

    Joined:
    Jan 3, 2015
    #3
    Thanks you very much
    I also found these:
    http://stackoverflow.com/questions/...-camera-with-uiimagepickercontroller-in-swift

    http://stackoverflow.com/questions/24094644/adding-an-image-into-a-cell

    I think these will help also but if you can give me more info that would be great

    Thanks
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    You're welcome.

    What kind of additional info are you requesting? Please be as specific as possible. Thanks.
     
  5. Pelop17 thread starter macrumors newbie

    Joined:
    Jan 3, 2015
    #5
    I saw that you have publish 3 app in the app store so you have an expirience in programming , but I am writing my code in swift
    My programme will be an organiser app
    What I mention aboe in my first post in what I need.
    If you know where can I find a full source code or good tutorials
    Also , If I use apple pay - will it be good
    and rather than login in / or sign app you in a website or in my app if you have something to hide like receits using you face via face recognistion will you use it?

    Thanks
     
  6. Ritmo macrumors member

    Ritmo

    Joined:
    Mar 27, 2009
    Location:
    Finland
    #6
    Code for taking photos in iOS 8 with Swift.
    https://github.com/vandadnp/iOS-8-S.../chapter-camera/Taking Photos with the Camera
     
  7. Pelop17 thread starter macrumors newbie

    Joined:
    Jan 3, 2015
    #7
  8. Ritmo macrumors member

    Ritmo

    Joined:
    Mar 27, 2009
    Location:
    Finland
    #8
    You can't be asking instructions for, how to do every little feature in your app.

    If you are beginner to Swift or programming I would suggest to start from basics. Then do few tutorials on how to create iOS apps and "copy" those features to your app.

    All that you want to do is pretty basic. You just need to learn to use all the countless resources available.
     
  9. AndyK macrumors 65816

    AndyK

    Joined:
    Jan 10, 2008
    #9
    An awful lot of online tutorials cover UIImagePickerController with regards to usually making a simple app that lets you take a picture & store / do something with it.

    If you're embarking on an actual project & you're unfamiliar with a simple task such as this, then you're probably not in a position to do the project in the first place. Cut & pasting code from the internet won't get you very far at all as eventually you'll just have lots of code blocks with no clue how to make them all talk / work together.

    The courses over at somewhere like Treehouse do a pretty good job of introducing this stuff & showing you how to integrate it into an application. I would suggest investing some time in learning to walk before you run.
     
  10. grandM macrumors 6502a

    grandM

    Joined:
    Oct 14, 2013
    #10
    many of these questions are answered in the bitfountain course. As they charge 149 dollars for their swift course I would call it a no brainer.
     

Share This Page