Multiple views which are better than UITableView, UIView or UICollectionView

Demand:

iPad app:

Show custom controls in list, controls are similar to Select File, Edit Image, Edit Video, Radio Group, Checkbox, Title Text Box, Panel, Tabs, Signature".

I am currently managing custom controls in UITableView

.

Each control has properties (enble, hidden, editable, secure, color, font, text, etc.). Properties can be changed by selecting a control from the list (tap the row UITableView

) and it will open the Property Inspector view for the specific control.

Problem:

It works fine until I have one control per row. Now I have a requirement to group these controls and display them on a single line.

It is difficult to manage a group of controls in a row. Which approach is best suited?

  • Use UITableView

    add group of controls to this and then add UITableView

    as cell

  • Using UIView

  • UICollectionView

0


source to share


1 answer


Posting my own answer because the approach for above works successfully now. Tested for all possible combinations for a month.

I continue with UITableView

and add custom views to UITableViewCell

all events being driven in their respective views by delegates.

The complex part where I have to manage a group of controls. For this, I created another one UITableView

and add it to the main table (here my requirement is not to continue grouping, so it is very important to take UITableView

).



Performance:

Tested for performance too. Shows scrolling lag multiple times for a device below iOS 7.0. For iOS 7.0 and above devices, it works smoothly.

Appreciate more responses from others if someone has left this situation.

0


source







All Articles