I'm a former developer who has worked on both Mac and PC platforms, but so long ago that at the time, Xcode 3 was the current IDE. I’m currently writing an app for my iPhone and basically have all the code worked out in a console app which uses a multidimensional array with 31 rows and 5 columns, and accepts user input via the command line. The rows are for each day of the month and the columns are for recording hours worked. What I need is some direction as to how to implement it in a GUI, e.g., what interface elements would I use etc. Any help would be appreciated. Thanks!
Code implementation
> and accepts user input via the command line
There is no console or 'command line' for iOS, so I'm not sure what to make of that statement, sorry. Perhaps you mean a pseudo CL.
Otherwise, see the docs on 'collection view' and this sample app: https://developer.apple.com/library/ios/samplecode/CollectionView-Simple/Introduction/Intro.html
What interface elements you would use depends entirely on what data needs to be entered and how you want to do it. You could display your array of cells in a collection view or table view, or just in a scroll view if the layout is completely static. Generally speaking in a touch based UI you would tap on a cell to initiate data entry. That would bring up the keyboard (if you use a UITextField or UITextArea), a date picker or whatever. Or maybe you'll have a stepper or your own custom control that you would display like a popover. The sky's the limit.
Read the Human Interface Guidelines for an idea of what is expected for the platform.
"What interface elements you would use depends entirely on what data needs to be entered and how you want to do it."
Ultimately, what the program will do is take a certain number of hours worked for a given day, and then do calculations based on those and previous hours, and then populate new fields with those calculations. For example:
Nov hours today last 7 days hours remaining
11/1 4.5 (user) 46.75 23.25
11/2 7.75 (user) 33.50 32.50
11/3 5.5 (user) 37.25 27.50
11/4
11/5
If the formatting didn't change after posting, this is basically what it will look like. Would the collection view facilitate this best or should I use something else?
Thanks.