Make app like Photo Library swift - ios

I am making an app like Photo Library in iphone
But I do not know what view is used to show images: UITableView or UIPickerView or UICollectionView.
With Table View: it scroll too fast - How to "stop at next cell when I slide it?"
With Picker View: the images are blurred at top and bottom, how to remove its?
Or Collection View?

You can use UICollectionView for it.
Check this link for more details
https://www.raywenderlich.com/136159/uicollectionview-tutorial-getting-started

Related

How to create multiple next view for an iOS application

I just want to know what exactly should I use in storyboard UI so that I can create multiple views which can replace one view with the after a click of button:-
Replacing first view with second in this way
And not this way
You can use a CollectionView as the Header of a TableView if you want a UI shown in first image.
TableView will be having Chat options and the Collection View will be having images as you have in the given picture.
Quick Overview :- TableView only supports Vertical scrolling which is best in your use case.
Collection can support both vertical as well as horizontal scrolling. So basically what you can do is have a collection view of height as much as you want as a header of your tableview. So when the user scrolls through your tableview your scrollview will also move up just like we have in facebook and instagram stories.
Even if you have more images in collection view then your predefine height set the scroll mode as you prefer horizontal or Vertical so that user can have a look at everything you have in there.
Edit :- After editing your question this can be done for what you're looking :-
You need a Navigation Controller. Here's the Navigation Controller Push and Present of the answer which shows in detail how you can achieve that.
By doing Push you can achieve what you want (first image) and by doing present you'll achieve the second image result.

Sharing a custom view as an image in iOS

I have a tableview with custom cells that collapse and display details on a tap. There are more cells than can be displayed at a time on the screen. I want to create a custom UIGraphicsBeginImageContextWithOptions that has the header of the screen (an image with the logo of my app) and all the cells in the tableview displaying the details underneath and then share it using the share button.
I tried finding examples but was unable to find anything that helps. How can I achieve this result?
Here is an example of what I am looking for:

UICollectionView within UITableViewCell with Swipe

I am using Xcode 7.1 and Swift 2.1 version.
I am looking for something as shown in the picture
Here in the left screen (Before Swiping), I have a UITableView in which there are certain cells in which I have to implement a right swipe functionality.Now when I swipe right the one coming from right must be a UICollectionView as shown in right picture (After Swipe) as there can be many options (a,b,c,d,e....). So they should be in some scroll view like UICollectionView.I searched a lot and found some libraries like
https://github.com/MortimerGoro/MGSwipeTableCell
https://github.com/CEWendel/SWTableViewCell
They provide array of UIButton or a single Button with image or text. We can add multiple buttons but they will shrink accordingly.
I want something called a UIView in which I can place UICollectionView and make its datasource accordingly with fixed size cells as shown in the picture.Any source or link for the same is highly appreciable.
Thanks

IOS: how to insert a filmStrip Type view in Main UIView

i am working in a project in which i need to implement a UICollectionView which scroll horizontally inside my UIView to show the thumbnails of videos which when clicked video started play.
and my main UIView will scroll vertically.
please help me how i implement this into my project
i am sharing an example image with question take a look at image i want to implement the same in my project
You will need two collection views: one for the vertical scroll and one for the horizontal scroll.
For each UICollectionView You need to add a UICollectionViewFlowLayout that will it's behavior.
For the horizontal one you can look at HACollectionViewLargeLayout.m found here:
https://github.com/hebertialmeida/HAPaperViewController/blob/master/Paper/HACollectionViewLargeLayout.m

How to enlarge individual cells while scrolling in UICollectionView?

I have a UICollectionView which has scrolling direction of horizontal. What I want to achieve is that when the UICollectionView is scrolled I want individual cells to enlarge there size. For example like the album Art work view in old iOS music app.
If you want something similar to "OLD IOS music app" art work view, then the easiest way I think would be to implement "scrollViewDidScroll" delegate method, then inside of "scrollViewDidScroll" get all visible cells of your collection view, and depending on their offset set CGAffineTransformScale.

Resources