Swift Programming an Attendance App - iphone

I am new to Swift and mobile programming. I am attempting to make a classroom management app with one portion of the app tracking attendance.
I have a DateTableView full of date cells that segue to the AttendanceTableView containing cells of students and a view object that that you can tap to account for attendance. Obviously I would like for the attendance view objects to be reset with each new date cell that is picked, and persist for older dates in order to keep track of attendance. Is there any way to do this using the one UITableView that I have for the attendance list?

Related

How to implement a collection view that will scroll based on the number of items provided (number count of physical items)?

I've been struggling with the theoretical part of this issue and I couldn't find anything useful. So this is what Im trying to do
I'm writing an app for a grocery store. I want to implement a collection view (on the screen, only 4 items are displayed), when you click the more button under the 4 items (collection view cells), the collection view will load more items. However, I don't know the item count, as that has to be provided by the grocery store at execution time
How do I approach this?
I'm trying to have 3-4 collection views on the same screen, working exactly as I've described. So they are categories basically
Thanks in advance!

Swift and Core Data Performance on an iPad Pro

I don't have much experience with Core Data and Swift. Can someone tell me how quickly I could do a fetch from Core Data of 500 records, save the fetch in an array, and add 500 representative UIViews to a view on an iPad Pro? Each record will have very few properties, maybe 4 integers and a string. This is going to be a game that adds buttons to the screen. When each is clicked it would update the corresponding record so next time the view is displayed we see which buttons were previously clicked. The data has to persist between app sessions. Thanks for your input.

How to present data on macOS app like a calendar view in swift

I am creating a macOS application in Swift where I have core data that I store routes planned for a certain date and have a specific duration.
I need to present all routes on a page similar to a calendar where each route will be presented with a certain color (depending the driver).
How I can create this view?
Do I have to use any calendar object?
Thank you.

Best object type for dynamic number of views on iPad?

I have a website I am trying to convert to an iPad application. I am new to iPad/iPhone development and I am not sure what type of object is the best to use. The website is http://www.distripplanner.com. If you look at section #3 (Choose Your Restaurants), the number of rows changes dynamically with number of days for the trip - with a max of 30 days.
My application is set up as a single-view application and I have my main view set up as a Scroll View (to scroll the page when the user chooses enough days) and the top portion of the application is completed.
I have tried to set up the view as a UICollectionView but did not get very far as it did not appear to be right object type.
I am currently working with an array of UIViews but the solution does not seem to be very optimized. In the initial application load I am looping through 30 (max number of days for a trip) and creating a view (no sub objects yet) for each day. I place the view based on calculations of the array index.
I do not add the subview to the main view if the array index is greater than the number of days for travel. My plan was to add more (already created) subviews when the user adds days to their trip and removing (hiding) the subview if the user reduces the number of days of their trip.
This approach just does not seem like a good solution and I am at a loss s to what type of view or object to use for this. Any help would be greatly appreciated.

What would be the best way to allow users to select from list of games for an iphone app?

I have an iphone app I'm trying to create where the user can select from a variety of "levels", but I'd like to later be able to change the number of levels, so I don't just want to create a few static buttons, but instead a dynamic list of levels.
The only difference between "levels" in my game are the coordinates used in a mapview, so what I'd really like is a dynamic list of levels which, once clicked, would go to my mapview and automatically populate the coordinate array with the relevant coordinates given the user's level selection.
What would be the best way to implement this? TableView looks like the right format, but the only examples I've seen are lists that don't go to different views once items in the table are selected, let alone passing data from that selection into the next view.
Any help is greatly appreciated!
Use table views if you don't want to go into more advanced code. Once a row is selected, save it's row number (selection) in a singleton (you can use the app delegate for this) and push the view with the map on the navigation controller - which view will "ask" the singleton for the selection.
If you're not afraid to get your hands dirty, you can create dynamic list of UIButtons (or other tapable control) on a UIScrollView. For bonus points, put more than 1 button on a line (kind of like the app icons on the iPhone "desktop"). When one's selected, save the selection in the singleton (like before).