I want to use more then one custom cells for my cell application.
Can anyone suggest me the approach do it.
TIA
Related
I want to learn and implement the most suitable/simple solution to display dynamic data (JSON) in three lines and an active (clickable) download icon. Screenshot is attached
I would be glad to get your ideas and advice!
Thanks
UITableView is the way to go, as you can reuse a custom cell you define. And to add to that, UITableView's cells are loaded lazily and are reused. You can use a UIScrollView but if you have a lot of rows it can horde your memory real fast. In your case, a UIScrollView can be used as well, but if you plan on expanding, UITableViews would be the choice. All in all, go with a UITableView + a custom UITableViewCell
If you have array of data like this, the best way is using UITableView class. With UITableview, you can custom your UITableViewCell on the fly
I am trying to create a similar collection view as ![this][1]
[1]: https://i.stack.imgur.com/Wwqas.png image in tableview but i have no clue how to do it. My data is coming from server using web service.
How to achieve this ?
This is seems like UICollectionView inside UITableViewCell for independent scrolling
Please go through below link for more detail...
Click here
You will have to use UICollectionView inside your custom UITableViewCell.
The flow should be like this:
UITableViewCell --> UICollectionView --> UICollectionViewCell
Currently I have a UITableView that uses UITableViewCell that displays images from arse.com. I was wondering if I could add another UITableView inside the UITableViewCell to display an comments.
Short answer: Yes
Long(er) answer: HELL NO!
You are just opening an entire can of worms... What problem do you hope to solve by this, that is not solvable by using UITableViewCell subclass?
I'm creating an app that will get data from an RSS feed and I want to know how I recreate something similar to the Facebook app 'containers'
An example of what I mean is below.
How would I go about recreating the boxes where the statuses are held?
To achieve your desire result you have to create custom table view cell using UITableViewCell and arrange views as per your need by creating subclass of UITableViewCell
Just create a UITableView with different prototype cells and then deque the appropriate cell identifier in cellForRowAtIndexPath.
You probably have to subclass UITableView for achieving the desired effects such as indentation etc.
After that you have to make custom view for each cell and return them from the method cellForRowAtIndexPath
Can i have two images and a few text labels in a cell of a tableView ? All dynamically assigned ?
Yes, read the documentation for the UITableViewCell class, specifically the UITableViewCellStyle constants which allow for various types of standard table cells to be created. If the built in styles do not meet your requirements, you can subclass UITableViewCell and create anything you want, since it's just another type of UIView.
Of course you can! There are several ways of achieving that, the most popular being subclass the UITableViewCell class, and creating your own custom cell, and you can have whatever you want in it. But just to get an idea of how to go about doing that, I suggest you go through the following links:
Table View Programming Guide for iOS - Apple
Crafting Custom
UITableViewCells - MobileTuts+