IOS display tile view images in UITableView - ios

I have 10 images and their description. I have to display it in UITableView. I want to display
those images in tile view. I am using this library. Here in the sample snap these 5 images are displaying in 2 cells. But i want that, all those images will display in just 1 cell. How can I do that?
Please Help

UICollectionView is the way to go.
UICollectionView takes the familiar patterns of UITableView and generalizes them to make any layout possible. In your case it will be fairy simple. You will use a standard built-in flow layout to place the tiles with pictures.

Related

How to create a collection view with images that change size on scroll

I want to implement an horizontal collection view displaying images that increases the size of the images with a smooth animation as they approach the center and reduces their size as they move away.
I have been studying the UICollectionView potentials but so far I have not been able to understand if such behaviour is possible to be implemented using UICollectionView or what would be the best alternative. For instance using UIScrollView instead (with a lot more work probably).
Some guidance or sample code would be most welcome. Thank you.

iOS | Photos App Like Photo Browser

First of all, I do not want to create a simple 2 or 3 columns gallery. I need exactly like the screenshot of Photos App, I've attached to the question. Big image can be paginated, thumbnails ill be scrolled, selected image's thumbnail will be animated.
I have some ideas.
1st, I can use collection view for the thumbnail scroller. (I have already done that.) But big images' pagination and animation of the selected images thumbnail is the trick here.
2ns, I can use UIPageViewController for the big image, but how can I achieve the page control with the thumbs, it is the problem.
Any ideas? Thank you.
You can do that observing the scroll view of the thumbnail's UICollectionView. UICollectionViewDelegate inherits from UIScrollViewDelegate, so you can receive notification of the scroll movements.
For every scroll position, check which cell is in the center point of the collection. As soon as that cell changes, you control the UIPageViewController.

how to create horizontally scrollable tableview and collectionview using swift 3

Hello all I'm trying to implement scrollable collection view along with tableview.
Please find the attached images this is exactly what I'm trying to implement.
image1. image2.
but I can't figure out what layout would I use in order to achieve this goal, any input/tutorial would be appreciated.Thank you.
Imageview list for category is basically a carousel control. So to achieve that you can check following two third party implementation. This will help you out.
https://github.com/nicklockwood/iCarousel
https://github.com/robertrr61/Image-Carousel
Otherwise you can also create your own control using Scrollview and image view with a little bit customization.

How to create a view like Photo Library view in iOS?

How to create a view like Photo Library view in iOS ? Like this
4 columns each row
Can scroll up/down
Can touch up to choose an image
I would suggest implementing a CollectionView and it's what Apple recommended in the WWDC videos.
The number columns can be achieving by the cell size & spacing. Do you also want only 4 columns in landscape mode and on iPad display or should it display more columns?
Scrolling is supported in collection views which there are too many images to display on screen.
Image (cell) selection is also supported by collection views.
There are plenty of good tutorials for collection views but look for the more recent ones (in the last year or two) which give examples using storyboards.
Hope this helps.

iOS UITableView cell layout questions

I have a chat on a web site that looks like this.
I am now building an iPhone app for this and have some problems creating the same layout. I hope you can point me in the right direction. Is subviews or webviews the best choice?
If using UIView, UILabel and UIImage, what is the best way to make rounded corners and the little arrow. The gradient background should not scroll with the table view. What's the easiest way to calculate the hight of each message? What is the best way to async load the images over http?
If using a webview, what is the best way to populate it with data? Building string? Having a template and populate the image, username, time and message thru JavaScript? How can I resize the UITableCell and UIWebView to fit the contests?
Will a table full of UIWebView be much slower than using labels? Will I need to create it twice to return the height of the cell in heightForCellAtIndexPath and add it in cellForRowAtIndexPath?
Thanks for your help!
If you wish to see it live, visit www.aktieguiden.com
This is really a lot more than two questions, and I'll answer several of them.
I would use a table view with a resizable UIImage and a UITextView for each bubble. Use an image of the bubble in png with a transparent background, and make it resizable. Import it with UIImage's -(UIImage*)resizableImageWithCapInsets:(UIEdgeInsets)capInsets. To determine a height, UITextView has a contentSize property which will tell you the size of the view that can be scrolled. For asynchronous loading, use one of the many tutorials or frameworks for that purpose. Here is one:
http://developers.enormego.com/view/what_if_images_on_the_iphone_were_as_easy_as_html

Resources