I created an app using xcode storyboarding. It has image files, let's say
1.png + (1-1.jpg, 1-2.jpg, 1-3.jpg.. 2-57.jpg.)
2.png + (2-1.jpg, 2-2.jpg, 2-3.jpg... 2-25.jpg)
14.png + (14-1.jpg, 14-2.jpg.... 14-36.jpg)
Basically it starts with a UICollectionView that displays pictures of items(14 PNGs) and there're two Navigation bar buttons, one for UITableView that shows the same items(PNGs) as a list.
When you select a picture(PNG) at the UICollectionView (or the bar button -> TableView list page, select a row at UITableView page), you push to a new detail view controller that shows the details based on your selection.
The detail view has one imageView, UILabels(title, level number and status), two buttons for next/previous item(PNG), another two buttons to show next/previous images(JPGs) which belong to each items, and finally a tab bar with a play button to start animation of next/previous images(JPGs), and a slide bar to control the speed of the animation(JPGs).
Step #1: So in the 1st view, when I select an 1.png or a 1st row, pushing a detail view controller that shows 1.png and related labels.
Step #2: When I tap next button, it shows 1-1.jpg. When I tap the button again, 1-2.jpg... and so on.
Step #3: When I tap next item button, it shows next 2.png. When I tap again, 3.png... and so on.
Step #4: When I tap animation play button, it shows 1-1.jpg, 1-2.jpg, 1-3.jpg... in animation.
Here's so far I have gotten. All working good but here're my problems arise:
problem #1: I want to show data in the detail view based upon data selected in the Collection and Table view. Step #1 is working properly but Step #2, #3 and #4 are not working (they show only 1st item related images and action) and I have hard time to do the same.
problem #2: I have many images for animation, I think I have to use sprite sheet to reduce space and prevent lag.
problem #3: On Step #4, I want each click would show animated images. For example, when I click next button, it shows 1-1.jpg, 102.jpg, 1-3.jpg animated, and another click shows 1-4.jpg, 1-5.jpg, 1-6.jpg. 1-7.jpg animated... and so on.
problem #4: I have a CollectionView and a CollectionDetailView. I want link the CollectionView to the TableDetailView and remove the CollectionDetailView but I don't know how.
problem #5: I'm a beginner, I'm not sure if my code is good or not.
So finally this is what I want:
1. Delete CollectionDetailView and segue the CollectionView to TableDetailView.
2. Concatenate filenames using NSString stringWithFormat thing.
3. Show data in the detail view based upon data selected in the previous views.
4. Let me know how to use sprite sheet in the UIImage view.
5. Next/Previous item button to push another view controller.
6. 'Beautify' and simplify the code if you have the time so that I would learn how to code.
You don't need to correct everything if it's too much work for you.
Example code for one or two items and good instruction how to change would be ok. If it works, I would pay immediately. Thank you!